Odoo Help

Welcome!

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.

0

Retrieve one2many fields values from the hr.employee modules

By
oumaima
on 6/5/13, 2:24 PM 514 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

professeur.py

class professeur(osv.osv):

_name = 'professeur'

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

professeur()

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

1 follower(s)

Stats

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