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

I tried two ways to display many2many field in list view but none of them worked:

1) <field name="test_ids"/> --> It shows just the number of records.(i.e. (3 records))

2) <field name="test_ids" widget="many2many"/> --> It shows the ids of records. (i.e. 2,3,4)

How to achive this?

아바타
취소
베스트 답변

use ==> widget="many2many_tags"

아바타
취소
작성자

I already tried this but not working. It shows the ids of records. (i.e. 2,3,4)

작성자

Tnx. There was some issue in my db. I created new db and it worked.

베스트 답변

Hello Rakesh,

.py - field_name = fields.Many2many('res.partner', string="many2many_tags")

.xml - <field name="field_name" widget="many2many_tags"/>


Hope it helps,

Regards,

Mayank Gosai

아바타
취소
작성자

Tnx. There was some issue in my db. I created new db and it worked.

관련 게시물 답글 화면 활동
1
6월 20
14010
1
10월 16
4053
1
9월 15
10689
0
12월 23
1625
1
5월 23
3083