Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
9269 Lượt xem

Hi all,

I had a view in Odoo 8 that worked well and that now doesn't work on Odoo 9. It's basically like that :

<form>
<field name="my_record_ids" mode="kanban">
<kanban default_group_by="group_field">
...
</kanban>
</field>
</form>

The integrated kanban cannot be grouped by a chosen field. When the view is loading, I get this error and the kanban view is not displayed :

TypeError: this.ViewManager.searchview is undefined

http://localhost:8069/web_kanban/static/src/js/kanban_view.js:438
I tried to add a search view for the related model, because it seems it looks for a search view to find how to group by the view, but even that did not work. Does anyone have an idea how to perform this?
Ảnh đại diện
Huỷ bỏ

Try defining a search view for the record

Tác giả

I tried it like I wrote in my post but it doesn't help.

Hello,

at the moment, regretfully, you can't use grouping or any search inside form. It both relates to kanban and list views

Tác giả Câu trả lời hay nhất

In fact it was possible by just adding the group_by field inside the kanban view.

<form>
<field name="my_record_ids" mode="kanban">
<kanban default_group_by="group_field">
<field name="group_field"/>
....
</kanban>
</field>
</form>

 

Ảnh đại diện
Huỷ bỏ

This seems to break any other kanban many2many displays on the same form. I.e works so long as its the only one.

Tác giả

Thanks for noticing that. In my case it's not a problem.

Do you perhaps know how one would group by tree view inside a form view?

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 23
1745
0
thg 11 23
1453
0
thg 10 23
1391
1
thg 6 21
3534
1
thg 3 15
11563