Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docsource/modules180-190.rst
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ Module coverage 18.0 -> 19.0
+---------------------------------------------------+----------------------+-------------------------------------------------+
| project_timesheet_holidays | | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| project_todo | | |
| project_todo |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
| purchase |Done | |
+---------------------------------------------------+----------------------+-------------------------------------------------+
Expand Down
17 changes: 17 additions & 0 deletions openupgrade_scripts/scripts/project_todo/19.0.1.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
"""Null ``path`` on the todo action, as the schema upgrade pre-populates
it and the module data XML then trips the unique constraint on its own
row.
"""
openupgrade.logged_query(
env.cr,
"""
UPDATE ir_act_window
SET path = NULL
WHERE path = 'to-do'
""",
)
Loading