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

hello, i want to create a Button that only visible to ADMIN only. if other than admin logged in , the button would be INVISIBLE...

thanks a lot in advance

Regards, Ali..

Аватар
Отменить
Лучший ответ

Hello,

You can do like:

<button string="Cancel all" groups="base.group_erp_manager"/>

In groups you have to assign the group to whom you want to display button.

Thanks.

Аватар
Отменить
Автор

how to give access right programmatically...???

In xml add groups="base.group_erp_manager" to the button you have created. This group already exist so no need to add other code.

Автор

thanks a lot.....!!!!

Related Posts Ответы Просмотры Активность
2
нояб. 24
1946
1
янв. 24
14298
3
июл. 22
15012
1
мая 21
9703
2
июн. 19
15954