跳至內容
選單
此問題已被標幟
1 回覆
9325 瀏覽次數

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
1944
1
1月 24
14296
3
7月 22
15010
1
5月 21
9701
2
6月 19
15949