跳至内容
菜单
此问题已终结
1 回复
9291 查看

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

形象
丢弃
最佳答案

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.

形象
丢弃
编写者

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.

编写者

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

相关帖文 回复 查看 活动
2
11月 24
1924
1
1月 24
14265
3
7月 22
14981
1
5月 21
9687
2
6月 19
15906