Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8406 มุมมอง

I Have a many2one field for product.product and there is only one group, If i click on man2one field i am getting the error as Document type: Product, Operation: read, If i enable the employee group then i am not getting any Error,

what is happening when a employee group is selected so that i can do the same thing for my customised group to achieve the solution

อวตาร
ละทิ้ง
ผู้เขียน

How to achieve the solution without selecting the employee group

i have the same problem when i click with a portal user on product

did you finally find a solution?

คำตอบที่ดีที่สุด

Its happening becase Employee Group has indirectly inherited base.group_user Group and in product.product class (addons/product/product.py), we have a float field named standard_price with attribute groups="standard_price".

So, if you enable Employee Group, you will inherit base.group_user and allow access to this float field but if you do not, you won't which the ACL's dont like and throw Product, Operation: read Error.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
7
ธ.ค. 23
23419
2
ก.ค. 23
2059
1
ส.ค. 25
288
2
มิ.ย. 25
1737
0
มี.ค. 25
1605