<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

        <record id="hr_fy_comp_rule" model="ir.rule">
            <field name="name">HR Period Rule</field>
            <field name="model_id" ref="model_hr_fiscalyear" />
            <field name="global" eval="True" />
            <field
            name="domain_force"
        >[('company_id', 'child_of', [user.company_id.id])]</field>
        </record>

        <record id="hr_period_comp_rule" model="ir.rule">
            <field name="name">HR Period Rule</field>
            <field name="model_id" ref="model_hr_period" />
            <field name="global" eval="True" />
            <field
            name="domain_force"
        >[('company_id', 'child_of', [user.company_id.id])]</field>
        </record>

</odoo>
