Skip to content

Syncing from upstream OCA/server-tools (18.0)#2008

Merged
bt-admin merged 13 commits intobrain-tec:18.0from
OCA:18.0
Feb 21, 2026
Merged

Syncing from upstream OCA/server-tools (18.0)#2008
bt-admin merged 13 commits intobrain-tec:18.0from
OCA:18.0

Conversation

@bt-admin
Copy link

bt_gitbot

StefanRijnhart and others added 13 commits February 19, 2026 14:49
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 #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
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 18.0 label Feb 21, 2026
@bt-admin bt-admin merged commit 554ccbb into brain-tec:18.0 Feb 21, 2026
4 checks passed
@codecov
Copy link

codecov bot commented Feb 21, 2026

Codecov Report

❌ Patch coverage is 99.20000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 75.77%. Comparing base (909ef5d) to head (7473ce1).
⚠️ Report is 128 commits behind head on 18.0.

Files with missing lines Patch % Lines
module_auto_update/tests/test_module.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             18.0    #2008      +/-   ##
==========================================
- Coverage   75.83%   75.77%   -0.06%     
==========================================
  Files         365      365              
  Lines       10952    10948       -4     
  Branches     1357     1357              
==========================================
- Hits         8305     8296       -9     
- Misses       2387     2388       +1     
- Partials      260      264       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants