[FIX] stock_account: fix comparison of apples and oranges

In anglosaxon accounting's stock valuation, the case where invoice and company currencies were different was not managed properly, because of a syntactic error in the condition checking this case.

Was PR #17259
This commit is contained in:
oco-odoo
2017-05-29 10:41:51 +02:00
committed by qdp-odoo
parent 130f9b3be5
commit 308e58857a
@@ -38,7 +38,7 @@ class AccountInvoice(models.Model):
cacc = accounts['expense'].id
if dacc and cacc:
price_unit = i_line._get_anglo_saxon_price_unit()
if inv.currency_id.id != company_currency:
if inv.currency_id != company_currency:
currency_id = inv.currency_id.id
amount_currency = i_line._get_price(company_currency, price_unit)
else: