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

Hey, so i want to be able to remove the 'Create' when typing in customer information to a contact, or adding a product but keep the 'Create and Edit' as we are having users on our system mistakenly create lots of duplicate records because if you search for somthing then click enter it just makes a contact regardless of any required fields in that model that i have setup.


How can i go about removing this 'Create' button from the dropdown list.

الصورة الرمزية
إهمال

Hi Nicholas Wright , Ibrahim Boudmir :

here it the solution

options="{'no_quick_create': True}

To customize odoo modules you must read these tips: https://old.reddit.com/r/learnodoo/

أفضل إجابة

Hi, 

to remove create, add options="{'no_create': True}" to your M2O field.

to remove create and edit, add options="{'no_create_edit': True}" to your M2O field.

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

Hi Ibrahim,

But  Nicholas Wright is asking to remove only create and keep the other option ( create and edit ),both of mentioned attributes don't solve the issue .  what do u think? is there an attribute just to remove create and to keep create and edite ?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 23
14761
0
أكتوبر 23
33
3
أكتوبر 23
788
1
أكتوبر 23
569
1
أغسطس 23
2489