跳至内容
菜单
此问题已终结
1 回复
3282 查看

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 !!

相关帖文 回复 查看 活动
3
8月 23
3891
1
10月 22
3420
3
7月 22
2838
2
3月 25
3809
4
5月 24
3422