Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3587 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

thanks for this

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 23
2933
0
jul. 23
1834
0
mei 18
3559
0
jul. 23
2
0
jul. 23
5