Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3495 Lượt xem

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>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks John Baldwin

Câu trả lời hay nhất

Have a look at this:

 

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

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks Martin Anderson