Skip to content

[OU-FIX] project_todo: pre-migrate path collision on ir.actions.act_window#79

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-project-todo-pre-migration
Open

[OU-FIX] project_todo: pre-migrate path collision on ir.actions.act_window#79
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-project-todo-pre-migration

Conversation

@dnplkndll
Copy link
Copy Markdown

Migration work on the ledoent/OpenUpgrade fork (internal review). Rebased onto current 19.0.

19.0 adds the path column on ir.actions.act_window with a unique
constraint and the schema upgrade pre-populates path='to-do' on
project_todo.project_task_action_todo. When the module's data XML
then _load_records() re-writes the same row with path='to-do', the
@api.constrains check finds the record's own existing value as a
duplicate of itself and raises Path to show in the URL must be unique,
aborting the migration at project_todo/views/project_task_views.xml:277.

Null the column in pre-migration so the install path can re-set it
cleanly.

@dnplkndll dnplkndll force-pushed the 19.0-mig-project-todo-pre-migration branch 3 times, most recently from 8e164d7 to 41fc47f Compare May 30, 2026 02:25
…indow

19.0 adds the `path` column on `ir.actions.act_window` with a unique
constraint and the schema upgrade pre-populates `path='to-do'` on
`project_todo.project_task_action_todo`. When the module's data XML
then `_load_records()` re-writes the same row with `path='to-do'`, the
@api.constrains check finds the record's own existing value as a
duplicate of itself and raises `Path to show in the URL must be unique`,
aborting the migration at `project_todo/views/project_task_views.xml:277`.

Null the column in pre-migration so the install path can re-set it
cleanly.
@dnplkndll dnplkndll force-pushed the 19.0-mig-project-todo-pre-migration branch from 41fc47f to 1d5f193 Compare May 30, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant