Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3806 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

thanks for this

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
kesäk. 23
3156
0
heinäk. 23
2023
0
toukok. 18
3791
0
heinäk. 23
2
0
heinäk. 23
5