跳至內容
選單
此問題已被標幟
1 回覆
3746 瀏覽次數

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

相關帖文 回覆 瀏覽次數 活動
1
6月 23
3119
0
7月 23
1994
0
5月 18
3746
0
7月 23
2
0
7月 23
5