تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5589 أدوات العرض

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
مارس 15
3455
0
مارس 15
3626
2
مايو 24
6564
1
يناير 20
6235
2
يوليو 17
7548