Odoo Help

0

all the employee name should automatically come to my field

By
gpkarthick
on 5/9/13, 7:08 AM 990 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....

1
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)]

Thanks,

explain breafly plz

gpkarthick
on 5/10/13, 8:19 AM

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.

Register

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)

Stats

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