Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
5038 Tampilan

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?

Avatar
Buang
Jawaban Terbai

use ==> widget="many2many_tags"

Avatar
Buang
Penulis

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

Penulis

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

Jawaban Terbai

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

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Jun 20
13886
1
Okt 16
3926
1
Sep 15
10524
0
Des 23
1408
1
Mei 23
2919