diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 922e30a0b67..ee1aded3938 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -444,7 +444,7 @@ class AccountMoveLine(models.Model): raise UserError(_("You cannot create journal items with a secondary currency without filling both 'currency' and 'amount currency' field.")) @api.multi - @api.constrains('amount_currency') + @api.constrains('amount_currency', 'debit', 'credit') def _check_currency_amount(self): for line in self: if line.amount_currency: