Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2679 Lượt xem

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   

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 21
4146
0
thg 2 18
3132
3
thg 6 17
6247
0
thg 1 16
4052
2
thg 8 19
5050