Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3796 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Autor

thanks for this

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 23
3147
0
Juli 23
2016
0
Mai 18
3778
0
Juli 23
2
0
Juli 23
5