Skip to content

Commit

Permalink
[FIX] project: table and model rename account_analytic_stage -> proje…
Browse files Browse the repository at this point in the history
…ct_project_stage
  • Loading branch information
AaronHForgeFlow committed Aug 28, 2024
1 parent 0304d4b commit cae2e1d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openupgrade_scripts/scripts/project/15.0.1.2/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ def rename_project_milestone_target_date(env):
{"project_milestone": [("target_date", "deadline")]},
)

_model_renames = [
("analytic.account.stage", "project.project.stage"),
]

_table_renamed = [
("analytic_account_stage", "project_project_stage"),
]

@openupgrade.migrate()
def migrate(env, version):
Expand All @@ -87,3 +94,5 @@ def migrate(env, version):
fill_project_project_last_update_status(env)
rename_project_milestone_target_date(env)
save_stage_id(env)
openupgrade.rename_models(env.cr, _model_renames)
openupgrade.rename_tables(env.cr, _table_renamed)

0 comments on commit cae2e1d

Please sign in to comment.