コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3790 ビュー

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
3144
0
7月 23
2013
0
5月 18
3774
0
7月 23
2
0
7月 23
5