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

I am using odoo 10 enterprise version and i created a many2one field in which autocomplete is default behavior. I want that "Create and edit" option only for administrator.

What is the possible way to do this using odoo studio OR debug mode ?

الصورة الرمزية
إهمال
أفضل إجابة

Hi Ahsan,

We have develop access-rights for the user to allow user to "Create and Edit" or not.

Please check below link:

https://youtu.be/9Dqf6LkVMj4


Thanks

الصورة الرمزية
إهمال
الكاتب

Thanks Sir for your time and video with detailed description, but i am unable to see "Can Access" checkbox in my user setting also i think you added domain filter on each many2one field. Can you share that domain so that it become more clear

أفضل إجابة

A simple way is to add in field attributes in xml view: 

<field name="myname" ... options="{'no_create_edit': True}" ... />

no_quick_create  to remove create...
no_create_edit  to remove create and edit...

Another way is to create a user group to define permissions and then add groups="mygroup" in attrs field.

الصورة الرمزية
إهمال
الكاتب

I think "no_quick_create" would hide that option from everyone . I want to show that option only to administrator

الكاتب

and i don't want to hide field i think second option would hide field from other users which are not in allowed group.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 18
2532
0
مايو 18
3238
2
مارس 24
1592
0
أغسطس 22
2302
1
يوليو 22
20001