Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
5048 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

use ==> widget="many2many_tags"

Imagine profil
Abandonează
Autor

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

Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
iun. 20
13890
1
oct. 16
3931
1
sept. 15
10524
0
dec. 23
1414
1
mai 23
2926