Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2680 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
helmik. 21
4146
0
helmik. 18
3132
3
kesäk. 17
6247
0
tammik. 16
4052
2
elok. 19
5050