Odoo Help


all the employee name should automatically come to my field

on 5/9/13, 7:08 AM 865 views

I have table fields are Employee Name, Target, duration.. in that table all the employee name(the person who is from sale department) from the he.employee table should automatically come to my field Employee name how to do that advance thanks....


Naresh Soni (nch)

--Naresh Soni (nch)--
| 2 2 4
--Naresh Soni (nch)--

Team Lead, Odoo(Formerly OpenERP) Support & OPW

Naresh Soni (nch)
On 5/10/13, 7:24 AM

Hello Gpkarthick,

First of all define this Employee name field as a dynamic selection field eg:

employee_names:fields.selection(get_employees,'Employee Name)

Create this get_employees function which fetches from the hr.employee table those employee's that belong to sales department and finally return [(id1,name1),(id2,name2)]


explain breafly plz

on 5/10/13, 8:19 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/9/13, 7:08 AM
Seen: 865 times
Last updated: 3/16/15, 8:10 AM