Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
5024 Weergaven

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
Annuleer
Beste antwoord

use ==> widget="many2many_tags"

Avatar
Annuleer
Auteur

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

Auteur

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

Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 20
13883
1
okt. 16
3926
1
sep. 15
10522
0
dec. 23
1406
1
mei 23
2913