<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="group_automation_user" model="res.groups">
        <field name="name">User</field>
        <field name="category_id" ref="base.module_category_automation" />
    </record>
    <record id="group_automation_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="category_id" ref="base.module_category_automation" />
        <field name="implied_ids" eval="[(4, ref('group_automation_user'))]" />
    </record>
    <data noupdate="1">
        <record id="base.user_admin" model="res.users">
            <field name="groups_id" eval="[(4, ref('group_automation_manager'))]" />
        </record>
        <record id="automation_configuration_rule" model="ir.rule">
            <field name="name">Automation Configuration Company rule</field>
            <field name="model_id" ref="model_automation_configuration" />
            <field name="global" eval="True" />
            <field
                name="domain_force"
            >['|', ('company_id', 'in', company_ids), ('company_id', '=', False)]</field>
        </record>
        <record id="automation_configuration_step_rule" model="ir.rule">
            <field name="name">Automation Configuration Company Activity rule</field>
            <field name="model_id" ref="model_automation_configuration_step" />
            <field name="global" eval="True" />
            <field
                name="domain_force"
            >['|', ('configuration_id.company_id', 'in', company_ids), ('configuration_id.company_id', '=', False)]</field>
        </record>
    </data>
</odoo>
