Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5609 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3463
0
มี.ค. 15
3635
2
พ.ค. 24
6581
odoo module update error แก้ไขแล้ว
1
ม.ค. 20
6271
How to update a field in recordset v10? แก้ไขแล้ว
2
ก.ค. 17
7589