Technical mailing list archives

technical@mail.odoo.com

Browse archives

Avatar

How change the default search field in Many2one field?

by
Jacky Meng
- 15/10/2018 06:09:47

Guys:

     I defined a Many2one field in my mode(let's call it ME), and the field is related to hr.employee, every time when I try to input this field on form view, there will be a dropdown list with a lot of employee names for me to choose, the problem is we have quite a lot of duplicated names in hr.employee, so I am wondering if it is possible I can use the phone number to search the employee in my ME module view. ( I know exactly how to add a search field in hr.emplyee module, my problem is how to change the search in my module when I use a Many2one field to refer to hr.employee.) Thanks a lot.

Follow-Ups