Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
5036 Visualizações

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
Cancelar
Melhor resposta

use ==> widget="many2many_tags"

Avatar
Cancelar
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.

Melhor resposta

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
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
1
jun. 20
13886
1
out. 16
3926
1
set. 15
10524
0
dez. 23
1408
1
mai. 23
2918