Skip to Content
Menú
This question has been flagged
2 Respostes
3484 Vistes

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>

Avatar
Descartar
Best Answer

Under Users set permissions as Manager for parent and other accountant as children. The use group rules to determine access.

https://www.odoo.com/documentation/8.0/reference/security.html

Avatar
Descartar
Autor

Thanks John Baldwin

Best Answer

Have a look at this:

 

http:// odoo-80.readthedocs .org /en/latest/guides/forms.html

Avatar
Descartar
Autor

thanks Martin Anderson