From ab4288deb659586b362116a4eb88e88dfeaf671a Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 3 Feb 2021 14:36:02 +0100 Subject: [PATCH] Add multi-company ir.rule on account.fiscal.year --- account_fiscal_year/__manifest__.py | 1 + .../security/account_fiscal_year_rule.xml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 account_fiscal_year/security/account_fiscal_year_rule.xml diff --git a/account_fiscal_year/__manifest__.py b/account_fiscal_year/__manifest__.py index c7794f87..cd299fc6 100644 --- a/account_fiscal_year/__manifest__.py +++ b/account_fiscal_year/__manifest__.py @@ -19,6 +19,7 @@ ], "data": [ "security/ir.model.access.csv", + "security/account_fiscal_year_rule.xml", "views/account_fiscal_year_views.xml", ], } diff --git a/account_fiscal_year/security/account_fiscal_year_rule.xml b/account_fiscal_year/security/account_fiscal_year_rule.xml new file mode 100644 index 00000000..51191e46 --- /dev/null +++ b/account_fiscal_year/security/account_fiscal_year_rule.xml @@ -0,0 +1,19 @@ + + + + + + + Fiscal Year multi-company + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + + +