[IMP] account: clarify error message

Courtesy of e2f translators
This commit is contained in:
Martin Trigaux
2018-02-06 17:03:47 +05:30
parent 57da0a5d60
commit 539a67e62f
+1 -1
View File
@@ -539,7 +539,7 @@ class AccountJournal(models.Model):
if not 'default_credit_account_id' in vals and self.default_credit_account_id:
self.default_credit_account_id.currency_id = vals['currency_id']
if 'bank_account_id' in vals and not vals.get('bank_account_id'):
raise UserError(_('You cannot empty the bank account once set.'))
raise UserError(_('You cannot remove the bank account from the journal once set.'))
result = super(AccountJournal, self).write(vals)
# Create the bank_account_id if necessary