Skip to content

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

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

[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 4 times, most recently from 4a09dc5 to 50c86fb Compare May 25, 2026 22:33
dnplkndll added a commit to ledoent/OpenUpgrade that referenced this pull request May 25, 2026
…ix on OCA#5667)

Records the 2026-05-25 investigation: the DELETE-based amendment I pushed
to 19.0-mig-project-todo-pre-migration didn't fix the data XML uniqueness
collision either. Reverted to the original UPDATE approach + deferred a
proper trace-and-fix to a separate engagement. See TODO §4.2.1 for the
captured hypothesis + action items.
@hbrunn
Copy link
Copy Markdown
Member

hbrunn commented May 26, 2026

@dnplkndll I'm closing your draft PRs and invite you to read my comments on your other PRs closely, as they'll apply across the board. Don't pollute the PR list with unsupervised generated bullshit.

@OCA/openupgrade-maintainers

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.

3 participants