Skip to Content
Menú
This question has been flagged
1 Respondre
9284 Vistes

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..

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Autor

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.

Autor

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

Related Posts Respostes Vistes Activitat
2
de nov. 24
1917
1
de gen. 24
14261
3
de jul. 22
14979
1
de maig 21
9676
2
de juny 19
15895