-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[16.0][IMP] upgrade_analysis: avoid private methods #3215
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
[16.0][IMP] upgrade_analysis: avoid private methods #3215
Conversation
|
Hi @legalsylvain, @StefanRijnhart, |
StefanRijnhart
left a comment
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.
For my (limited) understanding, do you have a concrete example where a migration triggers the exception?
|
This month, when I did a new analysis for v17, it broke when trying to access the |
|
Thanks for clarifying. Can't believe they private'd |
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.
This is not how the odoo patch mechanism of this module works. The mechanism works with a derived class: https://github.com/OCA/server-tools/blob/16.0/upgrade_analysis/odoo_patch/odoo/modules/registry.py.
But a patch using the mechanism would not work, because it is only active on the calling side, and the mechanism is not applied when doing remote communication.
Maybe we should ask Odoo to reconsider privating mapped? Is it just this one method or are other calls affected as well?
|
FYI @sebalix OdooRPC is impacted by this new way of 'privatization' in Odoo. |
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
|
Hi @MiquelRForgeFlow. thanks for your investigation. At a first sight, I'm not in favor to add core patch, if it's not necessary. Here, If I'm right, #3218 can solve the problem you mention. thanks ! |
|
Ok, let's replace this by #3218. |
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
FIX: OCA#3215. Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83. We so replace 'mapped' by 'search_read'
Avoids issue with accessing private methods (due to odoo/odoo@a1adf83).
I am not sure if I did correctly the monkey patch, it's not tested.