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

Hi everyone,

Is it possible to display one2many list in tree view?

In my case I have model named Shelf. Inside this model there are several fields like:

- shelf color  (char)

- shelf number (integer)

 - product_list  (one2many)  (has data about product like product name,product status etc.)


I want to display all data of this module in one line in tree view. So it would be look like:

shelf color/shelf number/ product name1/ product status 1/ product name2/product status 2.......


but when I write

<tree >
<field name="shelf_color" />
<field name="shelf_number" />
<field name="product_list"></field>
</tree>

It just display number of data in product_list field. How can I expand this field?

May be somebody know work around to display all data in line?


아바타
취소
베스트 답변

Check this one, 

https://www.odoo.com/forum/help-1/question/one2many-fields-in-tree-views-122826

아바타
취소
작성자

Yes, I think I will do that in this way. Thank you.

베스트 답변

<field name="product_list">
<tree >
<field name="shelf_color" />
<field name="shelf_number" />
</tree>
</field>

Try like that one2many then tree and then other fields.

아바타
취소
작성자

Thank you for your response, Muhammad.

In this case it still shows number of records instead records.

I also tried put widget many2many_tags, which shows a name of added field but not all field data.

작성자 베스트 답변


아바타
취소
관련 게시물 답글 화면 활동
1
10월 15
7780
4
6월 22
14866
0
3월 21
2241
0
5월 18
3240
1
11월 17
4992