Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
9290 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Autor

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.

Autor

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

Publicações relacionadas Respostas Visualizações Atividade
2
nov. 24
1922
1
jan. 24
14264
3
jul. 22
14981
1
mai. 21
9686
2
jun. 19
15903