From 67ad7a3452e604b0c466300bc6f44e04f9172004 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 18 Oct 2016 12:47:45 +0200 Subject: [PATCH] [FIX] stock_account: bad argument in compute on "res.currency" The function compute defined in "res.currency" takes records as arguents. opw:690787 --- addons/stock_account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)