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

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

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

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

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

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 22
1821
2
พ.ย. 22
3769
2
มี.ค. 23
8205
2
ธ.ค. 22
4284
Connecting Employee and Documents แก้ไขแล้ว
1
พ.ย. 23
2676