Search code examples
listviewtreeviewmany-to-manyodoo-8odoo

How to display man2many fields in list view in odoo 8?


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_tags"/> --> It shows the ids of records. (i.e. 2,3,4)

How to achive this?


Solution

  • Normally,

    <field name="test_ids" widget="many2many_tags"/> 
    

    must work.

    The reason the m2m columns displaying the ids is either your co-model does not contain either name field or _rec_name declaration in the model.