跳至内容
菜单
此问题已终结
2 回复
19489 查看

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

形象
丢弃
相关帖文 回复 查看 活动
0
3月 15
3213
2
12月 19
10630
12
12月 23
44080
1
1月 16
14705
0
3月 15
4905