[FIX] product_visible_discount: price currency
Commit 19e3757ffb 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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user