<?xml version="1.0" encoding="utf-8"?>
<openerp>
<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>
</openerp>
