From 79df52da9f341ce542b06e39efdb213e756092e8 Mon Sep 17 00:00:00 2001 From: Andrea Date: Mon, 3 Jul 2017 16:20:19 +0200 Subject: [PATCH] Add multicompany security rule --- l10n_nl_tax_statement/__manifest__.py | 1 + .../security/tax_statement_security_rule.xml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 l10n_nl_tax_statement/security/tax_statement_security_rule.xml diff --git a/l10n_nl_tax_statement/__manifest__.py b/l10n_nl_tax_statement/__manifest__.py index b463aef16..07d6c5586 100644 --- a/l10n_nl_tax_statement/__manifest__.py +++ b/l10n_nl_tax_statement/__manifest__.py @@ -15,6 +15,7 @@ ], 'data': [ 'security/ir.model.access.csv', + 'security/tax_statement_security_rule.xml', 'data/report_layouts.xml', 'views/l10n_nl_vat_statement.xml', 'report/reports.xml', diff --git a/l10n_nl_tax_statement/security/tax_statement_security_rule.xml b/l10n_nl_tax_statement/security/tax_statement_security_rule.xml new file mode 100644 index 000000000..5786d197d --- /dev/null +++ b/l10n_nl_tax_statement/security/tax_statement_security_rule.xml @@ -0,0 +1,11 @@ + + + + + NL Tax Statement multicompany + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + +