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

Title says it all: I have 2 models, foo.bar and foo.bar.line with a one2many relation. foo.bar.line has a text field on which it is useful to perform a "group by" : how can I show the foo.bar.lines within the foo.bar form view as a tree view with a group_by?

I've tried:

            <field name="line_ids"
                   colspan='4' context="{'group_by': 'group_field }">
              <tree....> </tree>
          </field>

with little success.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Although this was possible at 6.1, I have not seen a way to do it at 7.0. http://www.zbeanztech.com/blog/filtering-one2many-fields-openerp

อวตาร
ละทิ้ง
ผู้เขียน

I converted your comment to answer and accepted it.

คำตอบที่ดีที่สุด

Hi,

I'm trying to find a solution in odoo v14, trying to group by the vendor in product search view! it's doesn't work for me!

I wish if I could get help


Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3192
2
ธ.ค. 19
10610
How to auto refresh view? แก้ไขแล้ว
12
ธ.ค. 23
44011
1
ม.ค. 16
14660
0
มี.ค. 15
4873