Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3703 Представления

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
3061
0
июл. 23
1970
0
мая 18
3704
0
июл. 23
2
0
июл. 23
5