İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4340 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanı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


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 22
1824
2
Kas 22
3773
2
Mar 23
8211
2
Ara 22
4292
1
Kas 23
2683