Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
9303 Weergaven

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
Annuleer
Beste antwoord

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

Gerelateerde posts Antwoorden Weergaven Activiteit
2
nov. 24
1931
1
jan. 24
14273
3
jul. 22
14991
1
mei 21
9693
2
jun. 19
15923