[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) <qdp@openerp.com>
This commit is contained in:
Swapnesh Shah
2020-05-21 16:53:11 +00:00
committed by GitHub
parent 1229b9a19c
commit db08c1c794
+1 -1
View File
@@ -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):