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

Employee Manager must be able to view only his salary structure under the page "Employee Salary Structure". He must not be able to view the page in his team member's employee data alone.


아바타
취소
베스트 답변

Hi Krithika Ravindran,

You can achieve this by using following code

<record id="you_unique_id" model="ir.rule">
<field name="name">Employee Salary Structure</field>
<field name="model_id" ref="model_your_model_name"/>
<field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
</record>
If you have a group , you can add it below line
<field name="groups" eval="[(4, ref('model_name.group_name'))]"/>
Thank You.

아바타
취소
관련 게시물 답글 화면 활동
2
12월 23
14795
0
10월 23
33
3
10월 23
788
1
10월 23
569
1
8월 23
2513