odoo/addons/resource/security/resource_security.xml

17 lines
585 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record model="ir.rule" id="resource_own_leaves">
<field name="name">Resource: see own leaves</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>
</record>
</data>
</odoo>