flectra/addons/resource/security/resource_security.xml

24 lines
1.1 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<data noupdate="1">
<record model="ir.rule" id="resource_calendar_leaves_rule_group_user_create">
<field name="name">resource.calendar.leaves: employee reads own or global</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="domain_force">['|', ('resource_id', '=', False), ('resource_id.user_id', '=', user.id)]</field>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
<record model="ir.rule" id="resource_calendar_leaves_rule_group_user_modify">
<field name="name">resource.calendar.leaves: employee modifies own</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="domain_force">[('resource_id.user_id', '=', user.id)]</field>
<field name="perm_read" eval="False"/>
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>