Skip to Content
Menu
This question has been flagged
1 Odpoveď
3704 Zobrazenia

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?


Avatar
Zrušiť
Best Answer

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.

Avatar
Zrušiť
Autor

thanks for this

Related Posts Replies Zobrazenia Aktivita
1
jún 23
3066
0
júl 23
1972
0
máj 18
3704
0
júl 23
2
0
júl 23
5