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

I got this error when importing excel file in hr.employee.


ERROR: insert or update on table "hr_employee" violates foreign key constraint "hr_employee_resource_id_fkey"

อวตาร
ละทิ้ง

Did you find a solution? I am having the same issue.

ผู้เขียน

need to add to your column the working schedule of the employee

check if there is any data for this employee that is the same as another employee such as attendance user ID

คำตอบที่ดีที่สุด

you can avoid resource_id or assign resource import first then pass excel with resource id 


อวตาร
ละทิ้ง

how can i avoid it ?

คำตอบที่ดีที่สุด

how can i avoid resource id in my excel file ?



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

Hi

In this case, occur based on the resource id. because once the user_id is added to the database and we tried to import the employee details with the record you will get this type of error. so there is possible solution is that you need to try to import the employee details without resouce_id and the given contract id, after importing you can add the contract details separately

Hope it works

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

Hi  Aurel,

I think this video can help you: https://www.youtube.com/watch?v=VMJ0UI1crz4&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=3

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 23
2469
Import button is missing แก้ไขแล้ว
1
เม.ย. 23
7805
2
ต.ค. 22
2616
import in odoo 14 แก้ไขแล้ว
1
มิ.ย. 21
2851
1
ส.ค. 24
1843