コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2643 ビュー

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?


アバター
破棄
最善の回答

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

アバター
破棄
著作者

Thank you

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
name_get 解決済
2
7月 24
10285
0
3月 15
3686
1
2月 25
3721
3
2月 25
35596
2
2月 25
8694