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

user have access only as warehouse manager ,how to disable update button in inventory tab in product form login as warehouse manager

アバター
破棄
最善の回答

HI Veena,

You may restrict a button , field and other form contents with using the group attribute in that field/button, So only a provided group or groups may see or not see that field/button in the xml view of model, according to your provided condition in the xml code.

I am going to give you a sample example for this maybe it will help ... ""<button name="action_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert" groups="account.group_account_manager"/> ""

here only the person or users belong to this group account_manager will have access to this button. Similarly you can go for your requirement. Hope it will help.

アバター
破棄
著作者

where we write this code

This is just a sample line code you may also use similar code ""group attribute with your button field in xml.

著作者

only the admin wants to enable the update button

関連投稿 返信 ビュー 活動
0
3月 15
3464
0
3月 15
3638
2
5月 24
6584
1
1月 20
6271
2
7月 17
7594