Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4023 Переглядів

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?


Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

thanks for this

Related Posts Відповіді Переглядів Дія
1
черв. 23
3379
0
лип. 23
2302
0
трав. 18
3987
0
лип. 23
2
0
лип. 23
5