Skip to content

Commit

Permalink
[IMP] sale_stock: As we renamed the column, computation is launched
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Dec 4, 2024
1 parent 6472e14 commit 99a68e9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
""",
)

0 comments on commit 99a68e9

Please sign in to comment.