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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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
Hi, how to override or modify name_get method with odoo studio?
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
name_get
Đã xử lý
|
|
2
thg 7 24
|
10248 | |
|
0
thg 3 15
|
3684 | ||
|
1
thg 2 25
|
3718 | ||
|
3
thg 2 25
|
35584 | ||
|
2
thg 2 25
|
8688 |