Skip to content

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

Draft
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-project-todo-pre-migration
Draft

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

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 21, 2026

19.0 adds ir.actions.act_window.path (unique) and the schema upgrade
pre-populates it on the existing project_task_action_todo row; the
module's own @api.constrains check then flags the row as a
self-duplicate at data load. Null the column in pre-migration so the
install can re-set it cleanly.

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels May 21, 2026
…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 450fb29 to 50c86fb Compare May 22, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants