diff --git a/security/security_rules.xml b/security/security_rules.xml index ebb8d7e2919168b8f57243a22aa1595b65536067..c4cd9866467d0f777dd85cd267fd1080dc5a5ac4 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"/>