Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3734 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

thanks for this

Related Posts Odpovědi Zobrazení Aktivita
1
čvn 23
3107
0
čvc 23
1989
0
kvě 18
3730
0
čvc 23
2
0
čvc 23
5