From 55995cf9edd6fd4ffb6f59572279fc08b474de44 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Tue, 18 Jan 2022 18:41:00 +0100 Subject: [PATCH] [add] group category --- security/security_rules.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/security/security_rules.xml b/security/security_rules.xml index ebb8d7e..c4cd986 100644 --- a/security/security_rules.xml +++ b/security/security_rules.xml @@ -5,6 +5,23 @@ <odoo> <data noupdate="0"> + <!-- Categories & Groups --> + + <!-- Add Cotisations group category --> + <record model="ir.module.category" id="cgscop_cotisation_cg_module_category"> + <field name="name">Cotisation</field> + </record> + + <!-- Add cotisations groups --> + <record id="group_cotisation_cg_administrative" model="res.groups"> + <field name="name">Gestionnaire des cotisations</field> + <field name="category_id" ref="cgscop_cotisation_cg_module_category"/> + <field name="implied_ids" eval="[(6, 0, [ref('account.group_account_manager')])]"/> + </record> + + <!-- Rules --> + + <!-- Cotiz only for own company --> <record id="cg_cotisation_cg_rule" model="ir.rule"> <field name="name">Cotisations consultables que pour sa société</field> <field name="model_id" ref="cgscop_cotisation_cg.model_scop_cotisation_cg"/> -- GitLab