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

    <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 model="ir.ui.menu" id="base.menu_base_partner">
        <field eval="[(4, ref('base.group_sale_salesman'))]" name="groups_id"/>
    </record>

    <record model="ir.rule" id="sale_order_comp_rule">
        <field name="name">Sale Order multi-company</field>
        <field name="model_id" ref="model_sale_order"/>
        <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="sale_order_line_comp_rule">
        <field name="name">Sale Order Line multi-company</field>
        <field name="model_id" ref="model_sale_order_line"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
    </record>


</data>
</openerp>
