From 539a67e62f61977b704e6f9f2e2d65c15e06f551 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 6 Feb 2018 17:03:47 +0530 Subject: [PATCH] [IMP] account: clarify error message Courtesy of e2f translators --- addons/account/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 396b1fc516c..b2a8af28760 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -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