Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[FIX] product: Price on pricelist with pricelists inside of it #397

Closed hbto closed 2 years ago

hbto commented 3 years ago

Based on

https://github.com/Vauxoo/odoo/pull/372

Explain

When you have a global pricelist and inside of it, you have an item 'applied on' 'Global' and a pricelist 'A' with product A, and another item also with 'applied on' 'Global' with a pricelist 'B' with product B. And you make a sale order with the global pricelist and you add both products, the only product that is going to have the price set with the pricelist B or A it depends which item is first.

With this change, it will check in all items of the global pricelist until it finds the price or it will set the price on the product.

Notice

As this PR is being used in Stable branches not development pushes that have not been tested will done to this one.