Skip to content

[20.0][MIG] upgrade_analysis - #19

Open
dnplkndll wants to merge 88 commits into
20.0from
20.0-mig-upgrade_analysis
Open

dnplkndll wants to merge 88 commits into
20.0from
20.0-mig-upgrade_analysis

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Sep 28, 2026 •

Copy link
Copy Markdown

Port of upgrade_analysis from 19.0 to 20.0. Follows the OCA migration guide.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

@dnplkndll
dnplkndll force-pushed the 20.0-mig-upgrade_analysis branch from 292aa0c to 7318d9f Compare September 28, 2026 17:50
legalsylvain and others added 29 commits September 28, 2026 13:59
… 13.0) to OCA/server-tools

Based on commit 746b7acbd90d62f9ffe6ee17472a1a3533e36597 (Fri Nov 6 17:18:47 2020 +0100)

Co-authored-by: Stefan Rijnhart <stefan@opener.am>
… make the module installable, add readme folders
…y to select some modules, and improve filters, regarding test module with startswith and endswith pattern
Co-authored-by: Stefan Rijnhart <stefan@opener.am>
… (replaced by logger), apply pre-commit rules
[IMP] guess upgrade_path, if config is not set, and openupgrade_scripts is available
Co-authored-by: David Beal <david.beal@akretion.com>
Given that the records need to be managed in the modules that own them rather in the modules that override them, and that we also have the noupdate data xml for every module, then we left out the lines that where indicating the override of records.
Due to OCA#2057, noupdate data now considers merged modules. But the fix was incomplete, as the diff files between merged modules and local_module were rewritting already generated diff between original remote_module and local_module.
Currently translated at 4.6% (4 of 86 strings)

Translation: server-tools-14.0/server-tools-14.0-upgrade_analysis
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-upgrade_analysis/fr/
mymage and others added 27 commits September 28, 2026 14:00
Currently translated at 100.0% (90 of 90 strings)

Translation: server-tools-18.0/server-tools-18.0-upgrade_analysis
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-upgrade_analysis/it/
FIX: OCA#3215.
Rational : 'mapped' function has been privatized in odoo/odoo@a1adf83.
We so replace 'mapped' by 'search_read'
Fix Uncaught Promise > View types not defined tree found in act_window action undefined.
Before this patch, sometimes analysis files were created for the modules doesnt' contain any "change". Let's avoid that.

Besides other minor fixes, this patch improves the coverage file: No more "No DB layout changes" message on modules that contain the `noupdate_changes.xml` file.
…falsy value

When the previous version set a field explicitly and the new version omits it, _get_xml_diff generated eval="False" using field.falsy_value. This is wrong for fields whose default is truthy (e.g. ir.rule.perm_read/write/create/unlink or active): a fresh install applies the field's default, not its falsy value. The generated noupdate_changes.xml then mismatched a clean install and could even violate model constraints (e.g. ir.rule's _no_access_rights CHECK), breaking the migration.

Use model.default_get() to reset omitted fields to the value a fresh install would give them, falling back to falsy_value when there is no default or it is not a scalar.
…update records

When a noupdate record is moved to another module, its previous definition may set a field declared in a module the new one doesn't depend on (e.g. a module that depends on it). That field is still managed by its own module, so skip it instead of resetting it to its default in the new module's noupdate_changes.xml.
…anged

When a noupdate field set in the previous version is dropped in the current one, only write the reset to noupdate_changes.xml if the value a fresh install would give the field actually differs from the previous value. Otherwise the (noupdate) record already holds the right value and the entry is a no-op.
Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 20.0-mig-upgrade_analysis branch from 7318d9f to e897eb2 Compare September 28, 2026 18:04
* _reflect_model is _reflect_table_object, and returns its data_list now.
* mrp's _pre_init_mrp patch dropped; 20.0 declares no such hook.
* ir.model.access.csv -> ir.access.csv, via odoo-bin upgrade_code.
* config.version is not a float on packaged builds; routed through a helper.

Signed-off-by: Don Kendall <dkendall@ledoweb.com>
Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 20.0-mig-upgrade_analysis branch from e897eb2 to ead1b90 Compare September 28, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.