diff --git a/account_constraints/model/account_move_line.py b/account_constraints/model/account_move_line.py index 1e2f30cb2..78ed280f1 100644 --- a/account_constraints/model/account_move_line.py +++ b/account_constraints/model/account_move_line.py @@ -126,6 +126,9 @@ class AccountMoveLine(models.Model): @api.constrains('amount_currency') def _check_currency_amount(self): for l in self: + # If account have a second currency, don't apply constraint + if l.account_id.currency_id: + continue if l.amount_currency: if ((l.amount_currency > 0.0 and l.credit > 0.0) or (l.amount_currency < 0.0 and l.debit > 0.0)):