Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2631 Weergaven

Hello, In manager of an employee which is a many2one field, we get to select the name of the manager. but, when there are multiple employee having same name, it gets hard to identify the actual one. it also wrongly address manager when I try to upload manager of employee in bulk having same name. Now, what I want is, I will type the employee id in manager field which is a unique code, it will suggest the employee having that employee id . Could anyone please suggest me some approach to solve this problem?


Avatar
Annuleer
Beste antwoord

Hi,
You can over ride the name get function of the hr.employee model and modify the listed value as per need.


If you need to bring multiple field values from employee in this drop down, you can achieve it using the name_get method.


Odoo Name Get: Show Combination Of Field Values In Many2one Field

Also if you need to adjust the search, you can achieve it using name_search method: https://www.youtube.com/watch?v=dd5SYkPSMSo

Thanks

Avatar
Annuleer
Auteur

Thank you

Beste antwoord

Hi, how to override or modify name_get method with odoo studio?

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
name_get Opgelost
2
jul. 24
10229
0
mrt. 15
3683
1
feb. 25
3708
3
feb. 25
35578
2
feb. 25
8685