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

Hello All,

I have a Many2one field and when we selecting "Search More.." then list view open for this field. Is this possible to open direct list view for this Many2one field instead of choosing "Search More.."?

Thanks in advance.

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

Hey Pawan,

Go with Selection widget But i would recommend  > You have to override 'web' module's .js function and just change the limit given there.

----------- for odoo version 11 (web/static/src/js/fields/relational_fields.js) ------- Code where you need to change the limit ,as you can see default limit =7

init: function () {

this._super.apply(this, arguments);

this.limit = 7;
}


-- for v8 its (web/static/src/js/view_form.js)

Thanks,

Dipak

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

Hello Dipak,

I want to open direct list view when selecting this Many2one field. Is it possible?

Did you mean Treeview (list) ? what i considered is just like selection list dropdown.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 22
11505
2
مايو 21
8384
2
مارس 24
11764
5
سبتمبر 20
6154
1
ديسمبر 19
9588