İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
5022 Görünümler

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
Vazgeç
En İyi Yanıt

use ==> widget="many2many_tags"

Avatar
Vazgeç
Üretici

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

Üretici

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

En İyi Yanıt

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
Vazgeç
Üretici

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Haz 20
13883
1
Eki 16
3925
1
Eyl 15
10522
0
Ara 23
1406
1
May 23
2911