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

Dear 

 If we give Manufacturing user permission, user can access all Bill of materials. But, we don't want to share all BOM to user. We would like to restrict user to access specific Bill of Materials. Could you please help how to do this?

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Zinmarphyo,

You can define new Many2one field of users (res.users) on mrp.bom model.

assign_user_ids = Fields.Many2many("res.users", string="Assign users")

Based on this field we can apply record rule of specifc group as below.

['|',('x_studio_assign_users', 'in', [user.id]),('x_studio_assign_users','=',False)]


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat






อวตาร
ละทิ้ง

['|',('assign_user_ids', 'in', [user.id]),('assign_user_ids','=',False)]

ผู้เขียน

Hello,
It is work. Thank you.

please do upvote or mark as best answer if this answer really helps you !!

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 23
3918
1
ต.ค. 22
3444
3
ก.ค. 22
2856
2
มี.ค. 25
3846
4
พ.ค. 24
3433