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

    <record id="group_pos_user" model="res.groups">
        <field name="name">User</field>
        <field name="category_id" ref="base.module_category_point_of_sale"/>
    </record>
    <record id="group_pos_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="category_id" ref="base.module_category_point_of_sale"/>
        <field name="implied_ids" eval="[(4, ref('group_pos_user')), (4, ref('stock.group_stock_user'))]"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

    <record id="rule_pos_multi_company" model="ir.rule">
        <field name="name">Point Of Sale Order</field>
        <field name="model_id" ref="model_pos_order" />
        <field name="global" eval="True" />
        <field name="domain_force">[('company_id', '=', user.company_id.id)]</field>
    </record>
    <record id="rule_pos_config_multi_company" model="ir.rule">
        <field name="name">Point Of Sale Config</field>
        <field name="model_id" ref="model_pos_config" />
        <field name="global" eval="True" />
        <field name="domain_force">['|',('shop_id.company_id','=',False),('shop_id.company_id','child_of',[user.company_id.id])]</field>
    </record>
    <record id="rule_pos_order_report_multi_company" model="ir.rule">
        <field name="name">Point Of Sale Order Analysis multi-company</field>
        <field name="model_id" ref="model_report_pos_order"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
    </record>
</data>
</openerp>
