Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
9292 Prikazi

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
Opusti
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
Opusti
Avtor

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.

Avtor

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

Related Posts Odgovori Prikazi Aktivnost
2
nov. 24
1924
1
jan. 24
14265
3
jul. 22
14981
1
maj 21
9687
2
jun. 19
15909