-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] rename_modules: rename rating mixin parent_res_model as well #345
Conversation
7e24f19
to
f5538ce
Compare
openupgradelib/openupgrade.py
Outdated
@@ -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"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better check if table existe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@legalsylvain ok as you wish sir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't check both. Only the table existence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pedrobaeza Okay, done sir, i saw the above check both so i copy :v
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's true that the module installed check is used up on the code for mail
. I suppose that one was for not having to check a lot of table existence and as the module name is expected to be constant. In this case, I think one check is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, that 's fine by me
f5538ce
to
128ce80
Compare
128ce80
to
f4d5dc0
Compare
If not , rating feature will be gone for good