This question has been flagged
3450 Views

I need to add record of employee that listed under certain project on different module , but I'm not sure how to pull this .

My py :

class notebook_project(osv.osv):
    _name = "notebook.project"
    _description = "Notebook Project ID"
    _columns = {
        'name' : fields.many2one('project.project', 'Project'),
        'notebook_project_lines' : fields.one2many('notebook.project', 'notebook_project_id', 'Members Lines'),
        'notebook_project_id': fields.many2one('notebook.project', ondelete='cascade', select=True),
        'project_member' : fields.many2one('hr.employee', 'Members'),

        }

field name is the list of project , notebook_project_lines contains project_member . while notebook_project_id record the employee listed under the project itself .

What i need to do is when i choose certain project , every project member related to that project also printed under it as well . Please help , and thanks in advance

Avatar
Discard