Skip to content
Extraits de code Groupes Projets
Valider 1fefa363 rédigé par jordan's avatar jordan
Parcourir les fichiers

[add] add security rule for cotisation access per company

parent 88bc0c28
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"cgscop_cotisation", "cgscop_cotisation",
], ],
"data": [ "data": [
"security/security_rules.xml",
"security/ir.model.access.csv", "security/ir.model.access.csv",
"views/res_config_settings.xml", "views/res_config_settings.xml",
"views/scop_cotisation.xml", "views/scop_cotisation.xml",
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2020 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="0">
<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"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_unlink" eval="True"/>
</record>
</data>
</odoo>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter