Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
9326 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

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.

Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
2
nov. 24
1944
1
jan. 24
14297
3
jul. 22
15010
1
maj 21
9701
2
jun. 19
15949