Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3750 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks for this

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
3125
0
thg 7 23
1997
0
thg 5 18
3751
0
thg 7 23
2
0
thg 7 23
5