diff --git a/docsource/modules180-190.rst b/docsource/modules180-190.rst index e7f797ce0766..da1d6692df19 100644 --- a/docsource/modules180-190.rst +++ b/docsource/modules180-190.rst @@ -956,7 +956,7 @@ Module coverage 18.0 -> 19.0 +---------------------------------------------------+----------------------+-------------------------------------------------+ | project_timesheet_holidays | | | +---------------------------------------------------+----------------------+-------------------------------------------------+ -| project_todo | | | +| project_todo |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ | purchase |Done | | +---------------------------------------------------+----------------------+-------------------------------------------------+ diff --git a/openupgrade_scripts/scripts/project_todo/19.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/project_todo/19.0.1.0/pre-migration.py new file mode 100644 index 000000000000..9b3255f9c1e0 --- /dev/null +++ b/openupgrade_scripts/scripts/project_todo/19.0.1.0/pre-migration.py @@ -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' + """, + )