Commit 1d5f193
committed
[OU-FIX] project_todo: pre-migrate path collision on ir.actions.act_window
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.1 parent 0da208c commit 1d5f193
2 files changed
Lines changed: 18 additions & 1 deletion
File tree
- docsource
- openupgrade_scripts/scripts/project_todo/19.0.1.0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments