[18.0][REF] auditlog et al: adapt to new Odoo test patch checker#3526
Merged
OCA-git-bot merged 11 commits intoOCA:18.0from Feb 20, 2026
Merged
Conversation
cdbf84a to
7e20cd7
Compare
e6e40a3 to
c11af6b
Compare
f47d7b9 to
3e803b5
Compare
1b557ac to
bcec7d8
Compare
869d84f to
9d0e595
Compare
See odoo/odoo#247151 * Register with the patch checker to prevent exhaustive logging ``` odoo odoo.tests.common: /__w/server-tools/server-tools/auditlog/models/rule.py:232:_patch_method setting res.groups.unlink to <function AuditlogRule._make_unlink.<locals>.unlink_full at 0x7fa51ea90f70> ``` * Align model patching with how it's done in base_automation to fully remove patched methods. Fixes OCA#3439 * Dismantle own patch checker. * Ensure no patching takes place in setUpClass.
See odoo/odoo#247151 Fixes ``` AssertionError: Found unexpected attributes on res.partner: _default_batch_size ```
See odoo/odoo#247151 Fixes ``` AssertionError: Found unexpected attributes on res.partner.category: jsonify_custom ```
Replace manual monkeypatching with unittest.mock.patch which is not signalled by Odoo's patch checker. See odoo/odoo#247151
131bd3d to
984df5d
Compare
984df5d to
cd16a58
Compare
pedrobaeza
approved these changes
Feb 20, 2026
Member
pedrobaeza
left a comment
There was a problem hiding this comment.
Let's try to greenify everything involved in the new "pocalypse" (how do we call it? FakeModelLoaderpocalypse?
/ocabot merge patch
Contributor
|
This PR looks fantastic, let's merge it! |
Contributor
|
Congratulations, your PR was merged at 7473ce1. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requires
See odoo/odoo#247151
Fixes in
auditlog:Fixes in other modules: