From f910dc5b3db2811582acc32f1e6a60c9fcef783a Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 14 Nov 2016 11:29:37 +0100 Subject: [PATCH] [FIX] product_visible_discount: price currency Commit 19e3757ffb0a allows to return the product price without the discount included in the unit price. However, `lst_price` is always in the company currency, not in the pricelist currency. opw-692896 --- addons/product_visible_discount/models/sale_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/product_visible_discount/models/sale_order.py b/addons/product_visible_discount/models/sale_order.py index 3c5e95b0e0d..0035a64419f 100644 --- a/addons/product_visible_discount/models/sale_order.py +++ b/addons/product_visible_discount/models/sale_order.py @@ -72,5 +72,6 @@ class SaleOrderLine(models.Model): @api.multi def _get_display_price(self, product): if self.order_id.pricelist_id.discount_policy == 'without_discount': - return product.lst_price + return self.order_id.company_id.currency_id.compute( + product.lst_price, self.order_id.pricelist_id.currency_id) return super(SaleOrderLine, self)._get_display_price(product)