I cant access employee table ie hr_employee
table fields from my new module.
It shows error as
AttributeError: 'Field parent_id not found in browse_record(hr.employee, 6)
Any one please help!!!
Anu
I cant access employee table ie hr_employee
table fields from my new module.
It shows error as
AttributeError: 'Field parent_id not found in browse_record(hr.employee, 6)
Any one please help!!!
Anu
changing code to:
resource_id = self.pool.get('resource.resource').search(cr, uid, [('user_id','=', uid)][0]
Emp_id = self.pool.get('hr.employee').search(cr, uid, [('resource_id','=', resource_id)][0]
corrected my issue.