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

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

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

    </data>
</openerp>
