-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
[14.0] update all multi-company security rules #4356
Comments
Your point of view on this one would be highly appreciated @legalsylvain @StefanRijnhart @pedrobaeza Thanks ! |
Yes, we should add them. The best way may be to relaunch an analysis that compares all the noupdate data and rewrite the files. And for existing DBs, we may do a general replace with an script. |
Thank you @pedrobaeza |
Yes, the diff should then be checked manually to comment again what has been disabled across modules. |
v14.0 fixed with #4358for v15I have analyzed changes between v14 commit and v15 commit, and only new rules (which were not present in v14) differ, so from an OpenUpgrade perspective there should be no changes since these should be created during upgrade). The following XML ids are modified in v15 commit with respect to v14 commit :
for v16there are new changes so, I should create PR for the following XML IDs:
The following were either added in v16 or removed in v16 so should be handled by ORM during migration :
for v17.0There since migration scripts have not be written yet, I should take care of only updating noupdate_changes.xml for the following :
To be noted that they added in v17.0 updates on project rules but not on product rules... For existing DBNow the above is true if DB from v14.0 onwards were already updated to get updated company rules. I am not sure how to script the update of all these noupdate security rules though... |
Thanks for the analysis ! |
Odoo added yesterday on v14 a big change (in terms of numbers of rules concernés, should not change anything functionnally) by updating all multi-company to improve performances : odoo/odoo#157861
(This will most probably be forward ported to mater versions in the coming days)
Since a lot of these rules are noupdate=true, I guess it should be added to migration scripts (and maybe even d'or v14.0 to v14.0 updates). Because of the number of impacted rules, I am not sure what would be the n'est way-forward ? Maybe the easiest way would be to replace regex on all rules containing company_ids ?
The text was updated successfully, but these errors were encountered: