From db08c1c794cb25f7cc4d21a7964b6a67c11a215a Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Thu, 21 May 2020 16:53:11 +0000 Subject: [PATCH] [IMP] account: use correct tab name in warning Before this commit, It was refering to wrong tab name in the warning. With this commit, We use correct tab/section name in the warning. Follwo up on https://github.com/odoo/odoo/commit/045e0c0a26412d001a5f735225719d8d77887d9e#diff-dd671a54296b170ea1393dca1a5f7798R2988 closes odoo/odoo#51646 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index d5c273a5747..08a0c6613df 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3438,7 +3438,7 @@ class AccountMoveLine(models.Model): if control_journal_failed: raise UserError(_('You cannot use this account (%s) in this journal, check the field \'Allowed Journals\' on the related account.') % account.display_name) if control_type_failed or control_account_failed: - raise UserError(_('You cannot use this account (%s) in this journal, check the tab \'Control-Access\' on the related journal.') % account.display_name) + raise UserError(_('You cannot use this account (%s) in this journal, check the section \'Control-Access\' under tab \'Advanced Settings\' on the related journal.') % account.display_name) @api.constrains('account_id', 'tax_ids', 'tax_line_id', 'reconciled') def _check_off_balance(self):