Skip to content

Fork Sync Branch 19.0#208

Merged
btl-bot merged 8 commits into
BTLzdravtech:19.0from
OCA:19.0
Jul 16, 2026
Merged

Fork Sync Branch 19.0#208
btl-bot merged 8 commits into
BTLzdravtech:19.0from
OCA:19.0

Conversation

@btl-bot

@btl-bot btl-bot commented Jul 16, 2026

Copy link
Copy Markdown

No description provided.

LauraVForgeFlow and others added 8 commits July 9, 2026 09:46
Currently translated at 100.0% (5 of 5 strings)

Translation: server-tools-19.0/server-tools-19.0-base_cron_exclusion
Translate-URL: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-base_cron_exclusion/da/
Currently translated at 100.0% (5 of 5 strings)

Translation: server-tools-19.0/server-tools-19.0-base_cron_exclusion
Translate-URL: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-base_cron_exclusion/sv/
Signed-off-by pedrobaeza
…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.
Signed-off-by pedrobaeza

@sireko sireko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot
btl-bot merged commit f1fefd1 into BTLzdravtech:19.0 Jul 16, 2026
4 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 90.56604% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
upgrade_analysis/models/upgrade_analysis.py 84.21% 2 Missing and 1 partial ⚠️
upgrade_analysis/tests/test_module.py 93.93% 0 Missing and 2 partials ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
upgrade_analysis/compare.py 45.45% <100.00%> (+17.63%) ⬆️
upgrade_analysis/tests/test_module.py 97.75% <93.93%> (-2.25%) ⬇️
upgrade_analysis/models/upgrade_analysis.py 50.57% <84.21%> (+28.05%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

7 participants