Skip to content

Conversation

@bt-admin
Copy link

@bt-admin bt-admin commented Jan 5, 2026

bt_gitbot

legalsylvain and others added 30 commits September 22, 2025 13:49
Optimize validation
Add logger to apply patch
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-module_change_auto_install
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-module_change_auto_install/
MiquelRForgeFlow and others added 27 commits December 12, 2025 14:01
Fix Uncaught Promise > View types not defined tree found in act_window action undefined.
Tests break on test attachment created without store_fname when `mail` is
installed. In that case, attachments are actively deleted when a model is
unlinked, and the missing store_fname causes problems further down.

https://github.com/odoo/odoo/blob/d2274a3fdb/addons/mail/models/ir_model.py#L50-L68

Fixes
```

2026-01-02 20:25:20,571 385 ERROR odoo odoo.tests.suite: ERROR: tearDownClass (odoo.addons.database_cleanup.tests.test_purge_fields.TestCleanupPurgeFields)
Traceback (most recent call last):
  File "/__w/server-tools/server-tools/database_cleanup/tests/test_purge_fields.py", line 65, in tearDownClass
    model.unlink()
  File "/opt/odoo/addons/mail/models/ir_model.py", line 68, in unlink
    self.env['ir.attachment']._file_delete(fname)
  File "/opt/odoo/odoo/addons/base/models/ir_attachment.py", line 162, in _file_delete
    self._mark_for_gc(fname)
  File "/opt/odoo/odoo/addons/base/models/ir_attachment.py", line 167, in _mark_for_gc
    fname = re.sub('[.:]', '', fname).strip('/\\')
  File "/usr/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
```
Signed-off-by pedrobaeza
Signed-off-by StefanRijnhart
Signed-off-by StefanRijnhart
@bt-admin bt-admin added the 19.0 label Jan 5, 2026
@bt-admin bt-admin merged commit 072f6ad into brain-tec:19.0 Jan 5, 2026
4 checks passed
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

❌ Patch coverage is 45.62594% with 721 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.18%. Comparing base (1718574) to head (e7d0c91).
⚠️ Report is 176 commits behind head on 19.0.

Files with missing lines Patch % Lines
upgrade_analysis/models/upgrade_analysis.py 14.15% 279 Missing ⚠️
upgrade_analysis/compare.py 27.82% 233 Missing and 29 partials ⚠️
upgrade_analysis/models/upgrade_record.py 51.64% 43 Missing and 1 partial ⚠️
upgrade_analysis/upgrade_log.py 64.13% 15 Missing and 18 partials ⚠️
...grade_analysis/models/upgrade_comparison_config.py 47.82% 24 Missing ⚠️
...analysis/wizards/upgrade_generate_record_wizard.py 34.48% 19 Missing ⚠️
upgrade_analysis/wizards/upgrade_install_wizard.py 70.00% 17 Missing and 1 partial ⚠️
upgrade_analysis/odoo_patch/odoo/orm/registry.py 47.82% 12 Missing ⚠️
...sis/odoo_patch/odoo/addons/base/models/ir_model.py 66.66% 5 Missing and 4 partials ⚠️
upgrade_analysis/odoo_patch/odoo/orm/models.py 53.33% 7 Missing ⚠️
... and 4 more
Additional details and impacted files
@@             Coverage Diff             @@
##             19.0    #1977       +/-   ##
===========================================
- Coverage   87.56%   68.18%   -19.38%     
===========================================
  Files          64       99       +35     
  Lines        1544     2870     +1326     
  Branches      151      431      +280     
===========================================
+ Hits         1352     1957      +605     
- Misses        137      800      +663     
- Partials       55      113       +58     

☔ 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.