跳至內容
選單
此問題已被標幟
1 回覆
6562 瀏覽次數

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
8月 22
11650
2
5月 21
8548
2
3月 24
11958
5
9月 20
6264
1
12月 19
9676