Skip to content

Syncing from upstream OCA/server-tools (19.0) - #2085

Merged
bt-admin merged 6 commits into
brain-tec:19.0from
OCA:19.0
Jul 16, 2026
Merged

Syncing from upstream OCA/server-tools (19.0)#2085
bt-admin merged 6 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

hbrunn and others added 6 commits July 14, 2026 19:25
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
@bt-admin bt-admin added the 19.0 label Jul 16, 2026
@bt-admin
bt-admin merged commit 08b23a8 into brain-tec:19.0 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants