diff --git a/openupgrade_scripts/scripts/sale_stock/15.0.1.0/pre-migration.py b/openupgrade_scripts/scripts/sale_stock/15.0.1.0/pre-migration.py index d30d8f092129..9c1e150b8bc6 100644 --- a/openupgrade_scripts/scripts/sale_stock/15.0.1.0/pre-migration.py +++ b/openupgrade_scripts/scripts/sale_stock/15.0.1.0/pre-migration.py @@ -4,3 +4,10 @@ @openupgrade.migrate() def migrate(env, version): openupgrade.rename_columns(env.cr, {"sale_order": [("effective_date", None)]}) + openupgrade.logged_query( + env.cr, + """ + ALTER TABLE sale_order + ADD COLUMN effective_date timestamp + """, + )