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

        <record model="ir.rule" id="qc_issue_mc_rule">
            <field name="name">qc.issue multi-company</field>
            <field name="model_id" search="[('model','=','qc.issue')]"
                   model="ir.model"/>
            <field name="global" eval="True"/>
            <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
        </record>

        <record model="ir.rule" id="qc_problem_mc_rule">
            <field name="name">qc.issue multi-company</field>
            <field name="model_id" search="[('model','=','qc.problem')]"
                   model="ir.model"/>
            <field name="global" eval="True"/>
            <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
        </record>
        
    </data>
</odoo>
