diff --git a/addons/stock_account/models/account_invoice.py b/addons/stock_account/models/account_invoice.py index 9ddc1c686f4..5dba13166ae 100644 --- a/addons/stock_account/models/account_invoice.py +++ b/addons/stock_account/models/account_invoice.py @@ -77,7 +77,7 @@ class AccountInvoiceLine(models.Model): def _get_price(self, company_currency, price_unit): if self.invoice_id.currency_id.id != company_currency: - price = company_currency.with_context(date=self.invoice_id.date_invoice).compute(price_unit * self.quantity, self.invoice_id.currency_id.id) + price = company_currency.with_context(date=self.invoice_id.date_invoice).compute(price_unit * self.quantity, self.invoice_id.currency_id) else: price = price_unit * self.quantity return round(price, self.invoice_id.currency_id.decimal_places)