콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3402 화면

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
4076
1
10월 22
3557
3
7월 22
2981
2
3월 25
3990
4
5월 24
3578