Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3753 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

thanks for this

Post correlati Risposte Visualizzazioni Attività
1
giu 23
3128
0
lug 23
2001
0
mag 18
3754
0
lug 23
2
0
lug 23
5