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

    <record id="group_uos" context="{'noadmin':True}" model="res.groups">
        <field name="name">Useability / Product UoS View</field>
    </record>

    <record id="base.group_sale_manager" model="res.groups">
        <field name="name">Sales / Manager</field>
    </record>
    <record id="base.group_sale_salesman" model="res.groups">
        <field name="name">Sales / User</field>
    </record>

    <record id="product_comp_rule" model="ir.rule">
        <field name="name" >Product multi-company</field>
        <field name="model_id" ref="model_product_template"/>
        <field name="global" eval="True"/>
        <field name="domain_force"> ['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]</field>
    </record>

    <record id="group_product_variant" model="res.groups" context="{'noadmin':True}">
        <field name="name">Useability / Product Variant</field>
    </record>

    <record model="ir.rule" id="product_pricelist_comp_rule">
        <field name="name">product pricelist company rule</field>
        <field name="model_id" ref="model_product_pricelist"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]</field>
    </record>

    <record model="ir.rule" id="product_pricelist_item_comp_rule">
        <field name="name">product pricelist item company rule</field>
        <field name="model_id" ref="model_product_pricelist_item"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]</field>
    </record>

    <record model="ir.rule" id="product_pricelist_version_comp_rule">
        <field name="name">product pricelist version company rule</field>
        <field name="model_id" ref="model_product_pricelist_version"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|',('company_id','=',False),('company_id','child_of',[user.company_id.id]),('company_id.child_ids','child_of',[user.company_id.id])]</field>
    </record>

</data>
</openerp>
