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

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 22
11641
2
พ.ค. 21
8543
2
มี.ค. 24
11955
5
ก.ย. 20
6263
Filter field domain one2many to many2one แก้ไขแล้ว
1
ธ.ค. 19
9670