Search code examples
odooodoo-10odoo-11

how to get only child name not with parent name in many2many field with many2many_tags widget odoo?


I have the Customer field in the Sale Order form. I have added a new Many2many field with many2many_tags for Child Contacts of Customers in the Sale order form. Now when I change Customer this new field fills with its child contacts. But it comes with a Customer name. I want to display only the name of child contacts.

enter image description here enter image description here

Thanks in Advance.


Solution

  • The values are coming from js file of many2many_tags In this it shows values of display_name. You can change the code as per your need.