This question has been flagged

Hi,

i'm having a problem with my model and database , so i've created a model named rdv , in this model i have a field named employee with a many2one relation, like this :

      employee = fields.Many2one('hr.employee', string='Employee')

in the view side , the employee field shows a selection of employees , the relation worked , BUT , when i go to pgadmin to check my table rdv , the employee field has no reference to the hr.employee table , i dont know where is the problem , why there's no reference to hr.employee in my table even though it's working on the view side ??

PS: 

in the same model rdv i have other fields with many2one relation , and they are working just fine on the view side and even in the database , the reference is done right , i have a probleme only with hr.employee   

Avatar
Discard
Best Answer

Hello ceasr13,

I think it's a dependency problem.
Please check 'hr' module is installed in your database.
If Yes/No then please put 'hr' depends in module in your customise module and upgrade that module and check.

Thanks & Regards,

Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

Avatar
Discard