Closed aleuffre closed 2 months ago
The field employee_ids of project.task is computed. So, during the regular upgrade process, the m2m relation is populated by the compute method.
employee_ids
project.task
When executing the post-migration 1) the m2m relation has already been populated 2) the migration script causes errors of the type:
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "hr_employee_project_task_rel_pkey" DETAIL: Key (project_task_id, hr_employee_id)=(1, 1) already exists.
Hi @pedrobaeza, some modules you are maintaining are being modified, check this out!
The field
employee_ids
ofproject.task
is computed. So, during the regular upgrade process, the m2m relation is populated by the compute method.When executing the post-migration 1) the m2m relation has already been populated 2) the migration script causes errors of the type: