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

        <!-- Stock Portal Access Rules -->
        <record id="portal_stock_picking_user_rule" model="ir.rule">
            <field name="name">Portal Personal Pickings</field>
            <field name="model_id" ref="stock.model_stock_picking"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record id="portal_stock_picking_out_user_rule" model="ir.rule">
            <field name="name">Portal Personal Out Pickings</field>
            <field name="model_id" ref="stock.model_stock_picking_out"/>
            <field name="domain_force">[('message_follower_ids','in',[user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

    </data>
</openerp>
