コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
9288 ビュー

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
1920
1
1月 24
14264
3
7月 22
14981
1
5月 21
9685
2
6月 19
15899