Saturday, February 10, 2024
1 change · 17.0
Resolved issues and error corrections
This fix resolves a critical issue that was blocking system upgrades when custom models were involved in data merge operations. The system was attempting to process unloaded modules, causing errors that prevented upgrades from completing. By skipping unloaded modules during the merge process, upgrades can now proceed smoothly even with custom models present.
Original PR description
This patch is an improvement and simplification over the fix done in 5a64974501b5be231e2eed941f42ae6dfe110f18 When generating the company search query we should skip unloaded modules to avoid a `KeyError`. This issue became more visible now that the check in `ir.rule` is done for each domain. Refer to the above commit for steps on how to reproduce the issue. This issue has a high impact in upgrades since it potentially blocks all upgrades for which a `data_merge.record` entry exists for a custom model. Forward-Port-Of: odoo/enterprise#56228