Sunday, February 10, 2019
1 change · master
Resolved issues and error corrections
Sales orders using a price list in another currency now calculate product prices in that currency even when the product has no specific price-list rule. This prevents incorrect pricing and helps businesses avoid billing customers with amounts from the product’s default currency.
Original PR description
What are the steps to reproduce your issue? 1) Set Multi-Currencies and Multiple Prices per Product in sale configuration. 2) Create a new Price list using a different currency and remove the global…
What are the steps to reproduce your issue? 1) Set Multi-Currencies and Multiple Prices per Product in sale configuration. 2) Create a new Price list using a different currency and remove the global item generated automatically. 3) Create a new item in the price list created before and set a product or template. 4) Generate a new sale order and set the new price list created. 5) Create a new line and use a product that not belongs to the current price list. Considering the pricelist currency when the product does not have a valid rule in the pricelist set in the order. Current Behavior: If you generate a sale order using a price list with a different currency(Multi Currency enviroment) and then you create a new line using a product without a valid rule for this price list, the price returned by onchange method will be the list price set in the product without considering the currency of the current price list used in the order. Behavior with this commit: If you generate a sale order using a price list with a different currency(Multi Currency enviroment) and then you create a new line using a product without a valid rule for this price list, the price returned by onchange method will be a computed price considering the currency of the price list set in the order. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr