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

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
1933
1
січ. 24
14277
3
лип. 22
14993
1
трав. 21
9694
2
черв. 19
15926