Skip to content

Commit

Permalink
Merge PR #46 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Sep 7, 2024
2 parents df9d735 + 8a56258 commit 441f2a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion donation_stay/migrations/14.0.2.0.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@

@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_columns(env.cr, _column_renames)
# The column donation_id doesn't exist on stay_stay if you upgrade
# directly from 10.0 to 14.0.2.0.0
if openupgrade.column_exists(env.cr, "stay_stay", "donation_id"):
openupgrade.rename_columns(env.cr, _column_renames)

0 comments on commit 441f2a2

Please sign in to comment.