Odoo Help


Retrieve one2many fields values from the hr.employee modules

on 6/5/13, 2:24 PM 566 views

Hi everyone, I updated the hr.employee module,and now i wanna add a new menuitem(in my new module) where i wana retrieve the employee who have the job_id:professor but i retrieve an empty list in my new menuitem thank you


class professeur(osv.osv):

_name = 'professeur'

_columns = {
    'name':fields.one2many('hr.employee','prof_id',"Liste des professeurs", readonly=True),


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

1 follower(s)


Asked: 6/5/13, 2:24 PM
Seen: 566 times
Last updated: 3/16/15, 8:10 AM