콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
19508 화면

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
3222
2
12월 19
10643
12
12월 23
44110
1
1월 16
14728
0
3월 15
4916