[MERGE] forward port branch 9.0 up to f1608829a1

This commit is contained in:
Christophe Simonis
2018-03-14 13:48:57 +01:00
+1 -1
View File
@@ -449,7 +449,7 @@ class AccountMoveLine(models.Model):
raise ValidationError(_("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: