diff --git a/addons/purchase/models/account_invoice.py b/addons/purchase/models/account_invoice.py index 053702f5d84..d813c28f9d8 100644 --- a/addons/purchase/models/account_invoice.py +++ b/addons/purchase/models/account_invoice.py @@ -186,13 +186,13 @@ class AccountInvoice(models.Model): if child.type_tax_use != 'none': tax_ids.append((4, child.id, None)) price_before = line.get('price', 0.0) - line.update({'price': company_currency.round(valuation_price_unit * line['quantity'])}) + line.update({'price': inv.currency_id.round(valuation_price_unit * line['quantity'])}) diff_res.append({ 'type': 'src', 'name': i_line.name[:64], - 'price_unit': company_currency.round(price_unit - valuation_price_unit), + 'price_unit': inv.currency_id.round(price_unit - valuation_price_unit), 'quantity': line['quantity'], - 'price': company_currency.round(price_before - line.get('price', 0.0)), + 'price': inv.currency_id.round(price_before - line.get('price', 0.0)), 'account_id': acc, 'product_id': line['product_id'], 'uom_id': line['uom_id'],