Skip to Content
Menú
This question has been flagged
2 Respostes
3919 Vistes

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
Descartar
Best Answer

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

Avatar
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
0
de des. 22
1499
2
de nov. 22
3314
2
de març 23
7865
2
de des. 22
3945
1
de nov. 23
2336