Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
5047 Visninger

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
Kassér
Bedste svar

use ==> widget="many2many_tags"

Avatar
Kassér
Forfatter

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

Forfatter

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

Bedste svar

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
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
1
jun. 20
13890
1
okt. 16
3931
1
sep. 15
10524
0
dec. 23
1414
1
maj 23
2925