Skip to Content
Menu
This question has been flagged
1 Atsakyti
9348 Rodiniai

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

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

Portretas
Atmesti
Autorius

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.

Autorius

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

Related Posts Replies Rodiniai Veikla
2
lapkr. 24
1954
1
saus. 24
14321
3
liep. 22
15041
1
geg. 21
9717
2
birž. 19
15994