Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3639 Vizualizări

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?


Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Autor

thanks for this

Related Posts Răspunsuri Vizualizări Activitate
1
iun. 23
2979
0
iul. 23
1858
0
mai 18
3609
0
iul. 23
2
0
iul. 23
5