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

    <record id="budget_comp_rule" model="ir.rule">
        <field name="name">Budget multi-company</field>
        <field name="model_id" ref="model_budget_analytic"/>
        <field eval="True" name="global"/>
        <field name="domain_force">['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]</field>
    </record>

    <record id="budget_lines_comp_rule" model="ir.rule">
        <field name="name">Budget lines multi-company</field>
        <field name="model_id" ref="model_budget_line"/>
        <field eval="True" name="global"/>
        <field name="domain_force">['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]</field>
    </record>

    <record id="budget_report_comp_rule" model="ir.rule">
        <field name="name">Budget report multi-company</field>
        <field name="model_id" ref="model_budget_report"/>
        <field name="domain_force">['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]</field>
    </record>

    <record model="res.users" id="base.user_root">
        <field eval="[(4,ref('analytic.group_analytic_accounting'))]" name="groups_id"/>
    </record>

    <record model="res.users" id="base.user_admin">
        <field eval="[(4,ref('analytic.group_analytic_accounting'))]" name="groups_id"/>
    </record>

</odoo>
