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 Mar 12, 2024
1 parent 65189ba commit 8ef32ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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 @@ -68,10 +68,20 @@ def save_stage_id(env):
"update account_analytic_account set old_stage_id = stage_id;"
)

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

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

@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_columns(env.cr, _column_renames)
adapt_project_task_dependency(env)
fill_project_project_allow_task_dependencies(env)
fill_project_project_last_update_status(env)
save_stage_id(env)
openupgrade.rename_models(env.cr, _model_renames)
openupgrade.rename_tables(env.cr, _table_renamed)

0 comments on commit 8ef32ee

Please sign in to comment.