Skip to Content
Menu
This question has been flagged
1 Odpoveď
9338 Zobrazenia

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
Zrušiť
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
Zrušiť
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 Replies Zobrazenia Aktivita
2
nov 24
1947
1
jan 24
14305
3
júl 22
15023
1
máj 21
9708
2
jún 19
15963