跳至内容
菜单
此问题已终结
1 回复
3707 查看

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
3068
0
7月 23
1974
0
5月 18
3705
0
7月 23
2
0
7月 23
5