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

The default of the button is invisible.

Access Right Scenario:
User: The button will show if create_uid is not equal to the partner_id
Manager: This button will always display.

What I did was:

attrs="{'visible':[('groups_ids','=','group_user'),('groups_ids','=','group_manager')]}"

Any idea on how to achieve it in another way?


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

Create a boolean computed field whose value is computed based on the conditions you need and use the value of that field to control the visibility of the button.

อวตาร
ละทิ้ง
ผู้เขียน

thanks for this

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 23
3175
0
ก.ค. 23
2071
0
พ.ค. 18
3802
0
ก.ค. 23
2
0
ก.ค. 23
5