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

Hi,


I'm getting this error while trying to import employees contracts in Employee module :

insert or update on table "hr_employee" violates foreign key constraint "hr_employee_resource_id_fkey" DETAIL: Key (resource_id)=(2583) is not present in table "resource_resource".

I double checked all the columns the are exactly the same I exported before


Thank you

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

Check if you have deleted an employee after exporting the list containing employees external ids

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

Add Resource Column to the imported table, and checked the option "create if not existed" while importing. it wasn't the resource record duplicated, actually the record doesn't exist and that's the problem.

Trying to import xls file to create employees. | Odoo


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 22
1618
2
thg 11 22
3523
2
thg 3 23
8006
2
thg 12 22
4060
1
thg 11 23
2431