Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2665 มุมมอง

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   

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 21
4140
0
ก.พ. 18
3128
3
มิ.ย. 17
6243
0
ม.ค. 16
4051
2
ส.ค. 19
5036