Skip to content

Commit

Permalink
[IMP] rename_modules: rename rating mixin parent_res_model as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ndd-odoo committed Sep 13, 2023
1 parent f5be91a commit 7e24f19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,12 @@ def rename_models(cr, model_spec):
"UPDATE mail_activity SET res_model=%s where res_model=%s",
(new, old),
)
if is_module_installed(cr, "rating"):
logged_query(
cr,
"UPDATE rating.rating SET parent_res_model=%s where parent_res_model=%s",
(new, old),
)

# TODO: signal where the model occurs in references to ir_model

Expand Down

0 comments on commit 7e24f19

Please sign in to comment.