Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
9294 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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.

Auteur

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

Publications associées Réponses Vues Activité
2
nov. 24
1924
1
janv. 24
14265
3
juil. 22
14983
1
mai 21
9689
2
juin 19
15911