Skip to content
Extraits de code Groupes Projets
Valider d9093f5e rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] règle d'enregistrement modification UR établissements et personnes

parent 73a759f2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -45,7 +45,7 @@
<record id="res_partner_rule_ur" model="ir.rule">
<field name="name">Modification des partenaires de mon UR</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="domain_force">['|','|',('ur_id','=',False),('ur_id','=',user.company_id.ur_id.id),('parent_id.ur_id','=',user.company_id.ur_id.id)]</field>
<field name="domain_force">['|','|',('ur_id','=',False),('ur_id','=',user.company_id.ur_id.id)]</field>
<field name="groups" eval="[(6, 0, [ref('base.group_user')])]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="True"/>
......
......@@ -86,7 +86,7 @@
<label for="parent_id" string="Société" attrs="{'invisible': ['|', '&amp;', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/>
</field>
<field name="parent_id" position="attributes">
<attribute name="options">{'no_open': True, 'no_create': True}</attribute>
<attribute name="options">{'no_create': True}</attribute>
<attribute name="domain">[('is_company', '=', True)]</attribute>
<attribute name="placeholder">Société</attribute>
</field>
......
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