Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4032 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
dic 22
1610
2
nov 22
3511
2
mar 23
7987
2
dic 22
4047
1
nov 23
2422