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

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14891
0
ต.ค. 23
33
3
ต.ค. 23
789
1
ต.ค. 23
569
1
ส.ค. 23
2544