Odoo Help


This community 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.


all the employee name should automatically come to my field

on 5/9/13, 7:08 AM 819 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)--
Tiny ERP Pvt Ltd
| 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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