diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 48e6844e67c..4da3e85c6b6 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -131,7 +131,7 @@ class account_invoice(models.Model): continue # Get the correct line residual amount if line.currency_id == self.currency_id: - line_amount = line.currency_id and line.amount_residual_currency or line.amount_residual + line_amount = line.amount_residual_currency if line.currency_id else line.amount_residual else: from_currency = line.company_id.currency_id.with_context(date=line.date) line_amount = from_currency.compute(line.amount_residual, self.currency_id)