From b992c1f877fe218b1e8a358087b40080ec834bb8 Mon Sep 17 00:00:00 2001 From: mreficent Date: Fri, 19 Jul 2019 13:18:41 +0200 Subject: [PATCH 1/2] [ADD] fiscalyear date.range.type data This date.range.type in v11 have benn used in some cases. Then, when you migrate, you need to have this data or else delete its xmlid. We think it's better to keep it, because you may want to still use it. --- account_fiscal_year/data/date_range_type.xml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 account_fiscal_year/data/date_range_type.xml diff --git a/account_fiscal_year/data/date_range_type.xml b/account_fiscal_year/data/date_range_type.xml new file mode 100644 index 000000000..abff2dd64 --- /dev/null +++ b/account_fiscal_year/data/date_range_type.xml @@ -0,0 +1,7 @@ + + + + Fiscal Year + + + From d5f6f149f38d2dc25768a50d20a821cb6a6b6b38 Mon Sep 17 00:00:00 2001 From: xavier-bouquiaux Date: Mon, 8 Nov 2021 10:17:04 +0100 Subject: [PATCH 2/2] [14.0][FIX] account_fiscal_year less rights needed --- account_fiscal_year/__manifest__.py | 5 ++--- account_fiscal_year/security/ir.model.access.csv | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/account_fiscal_year/__manifest__.py b/account_fiscal_year/__manifest__.py index 0dfbc8100..e71497256 100644 --- a/account_fiscal_year/__manifest__.py +++ b/account_fiscal_year/__manifest__.py @@ -14,11 +14,10 @@ "Odoo Community Association (OCA)", "maintainers": ["eLBati"], "license": "AGPL-3", - "depends": [ - "account", - ], + "depends": ["account", "date_range"], "data": [ "security/ir.model.access.csv", + "data/date_range_type.xml", "security/account_fiscal_year_rule.xml", "views/account_fiscal_year_views.xml", ], diff --git a/account_fiscal_year/security/ir.model.access.csv b/account_fiscal_year/security/ir.model.access.csv index 7fe98c4df..598cf4e43 100644 --- a/account_fiscal_year/security/ir.model.access.csv +++ b/account_fiscal_year/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_account_fiscal_year_user,account.fiscal.year.user,model_account_fiscal_year,account.group_account_user,1,0,0,0 -access_account_fiscal_year_manager,account.fiscal.year.manager,model_account_fiscal_year,account.group_account_manager,1,1,1,1 +access_account_fiscal_year_manager,account.fiscal.year.manager,model_account_fiscal_year,account.group_account_invoice,1,1,1,1