From 2edcf6c4ac89516c06500ea6e6db1c84af01aece Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 11 Jan 2023 10:52:22 +0000 Subject: [PATCH] [IMP] account_chart_update: reduce permissions Only managers will be able to execute the chart of account wizard. This reflects [the requirement hardcoded upstream][1]. @moduon MT-1923 [1]: https://github.com/odoo/odoo/blob/4ac5ec6a2c4b3e2707446acb1cd693808f0d3c8a/addons/account/models/chart_template.py#L234 --- .../security/ir.model.access.csv | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/account_chart_update/security/ir.model.access.csv b/account_chart_update/security/ir.model.access.csv index a9789aa7..38346742 100644 --- a/account_chart_update/security/ir.model.access.csv +++ b/account_chart_update/security/ir.model.access.csv @@ -1,9 +1,9 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_wizard_update_charts_accounts,wizard.update.charts.accounts,model_wizard_update_charts_accounts,,1,1,1,1 -access_wizard_update_charts_accounts_account,wizard.update.charts.accounts.account,model_wizard_update_charts_accounts_account,,1,1,1,1 -access_wizard_tax_matching,wizard.tax.matching,model_wizard_tax_matching,,1,1,1,1 -access_wizard_fp_matching,wizard.fp.matching,model_wizard_fp_matching,,1,1,1,1 -access_wizard_account_matching,wizard.account.matching,model_wizard_account_matching,,1,1,1,1 -access_wizard_update_charts_accounts_tax,wizard.update.charts.accounts.tax,model_wizard_update_charts_accounts_tax,,1,1,1,1 -access_wizard_matching,wizard.matching,model_wizard_matching,,1,1,1,1 -access_wizard_update_charts_accounts_fiscal_position,wizard.update.charts.accounts.fiscal.position,model_wizard_update_charts_accounts_fiscal_position,,1,1,1,1 +access_wizard_update_charts_accounts,wizard.update.charts.accounts,model_wizard_update_charts_accounts,base.group_erp_manager,1,1,1,1 +access_wizard_update_charts_accounts_account,wizard.update.charts.accounts.account,model_wizard_update_charts_accounts_account,base.group_erp_manager,1,1,1,1 +access_wizard_tax_matching,wizard.tax.matching,model_wizard_tax_matching,base.group_erp_manager,1,1,1,1 +access_wizard_fp_matching,wizard.fp.matching,model_wizard_fp_matching,base.group_erp_manager,1,1,1,1 +access_wizard_account_matching,wizard.account.matching,model_wizard_account_matching,base.group_erp_manager,1,1,1,1 +access_wizard_update_charts_accounts_tax,wizard.update.charts.accounts.tax,model_wizard_update_charts_accounts_tax,base.group_erp_manager,1,1,1,1 +access_wizard_matching,wizard.matching,model_wizard_matching,base.group_erp_manager,1,1,1,1 +access_wizard_update_charts_accounts_fiscal_position,wizard.update.charts.accounts.fiscal.position,model_wizard_update_charts_accounts_fiscal_position,base.group_erp_manager,1,1,1,1