forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 5
Syncing from upstream OCA/server-tools (19.0) #1977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…able modules by configuration
Optimize validation Add logger to apply patch
…dencies. (before, was boolean)
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/
Fix Uncaught Promise > View types not defined tree found in act_window action undefined.
and remove spaces for comparison
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 ```
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
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.
bt_gitbot