Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2667 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Feb. 21
4140
0
Feb. 18
3128
3
Juni 17
6243
0
Jan. 16
4051
2
Aug. 19
5036