diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 9ce29acd016..1dde4f03844 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -519,8 +519,8 @@ class AccountMoveLine(models.Model): amount = line.amount_currency if line.currency_id and line.currency_id != line.company_currency_id: amount = self.currency_id.with_context(date=line.date).compute(amount, line.company_currency_id) - line.debit = amount > 0 and amount or 0.0 - line.credit = amount < 0 and -amount or 0.0 + line.debit = amount > 0 and amount or 0.0 + line.credit = amount < 0 and -amount or 0.0 #################################################### # Reconciliation interface methods