I want to make a Access Rules in Accoutning for shop_id. for example i got a 1 parent and 4 child of. if i log as the parent can view the datas of 4 childs. Does anyone here knows how to do that? please teach me how? thanks in advance..
In Xml:
<record id="account_invoice_rule" model="ir.rule">
<field name="name">Account Invoice</field>
<field name="model_id" ref="model_account_invoice"/>
<field name="group_id" ref="biz1_pcci.group_acc_user_1"/>
<field name="global" eval="False"/>
<field name="domain_force">[('partner_id.shop_id','=',user.shop_id.id)]</field>
</record>