Skip to content

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

Merged
bt-admin merged 44 commits intobrain-tec:19.0from
OCA:19.0
Feb 14, 2026
Merged

Syncing from upstream OCA/server-tools (19.0)#2006
bt-admin merged 44 commits intobrain-tec:19.0from
OCA:19.0

Conversation

@bt-admin
Copy link

bt_gitbot

nans and others added 30 commits December 12, 2025 10:48
Currently translated at 100.0% (2 of 2 strings)

Translation: server-tools-16.0/server-tools-16.0-base_partition
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_partition/es/
Currently translated at 100.0% (2 of 2 strings)

Translation: server-tools-16.0/server-tools-16.0-base_partition
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_partition/it/
Currently translated at 100.0% (2 of 2 strings)

Translation: server-tools-17.0/server-tools-17.0-base_partition
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_partition/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-base_partition
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-base_partition/
mymage and others added 14 commits December 31, 2025 15:03
    - Add proper string conversion for non-string return values from Python code
      in sequence evaluation to prevent TypeError during string concatenation
    - Use isinstance check to only convert non-string values, preserving
      original behavior for string results
    - Add test case to verify handling of integer return values from Python code
    - Use separate sequence in test to avoid interference with other tests

   The fix ensures that when Python code in sequence evaluation returns
   non-string values (like integers), they are properly converted to strings
   before concatenation with prefix and suffix, preventing TypeError.

   Fixes potential issue where Python expressions returning integers or
   other non-string types would cause concatenation errors.
 - Move UUID safe members computation to module level as a constant
 - Replace repeated computation in _get_python_eval_context with constant lookup
 - Use _UUID_SAFE_MEMBERS constant instead of computing uuid_elements on each call
 - Improves performance by avoiding redundant computation on every sequence evaluation

 This optimization pre-computes the UUID safe members list once at module
 import time instead of recomputing it on every call to _get_python_eval_context,
which can happen frequently during sequence operations.
Signed-off-by thomaspaulb
Signed-off-by thomaspaulb
@bt-admin bt-admin added the 19.0 label Feb 14, 2026
@bt-admin bt-admin merged commit 117b2e9 into brain-tec:19.0 Feb 14, 2026
4 checks passed
@codecov
Copy link

codecov bot commented Feb 14, 2026

Codecov Report

❌ Patch coverage is 98.88268% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.57%. Comparing base (84b2db4) to head (b9c61bb).
⚠️ Report is 60 commits behind head on 19.0.

Files with missing lines Patch % Lines
sequence_python/models/ir_sequence.py 94.73% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             19.0    #2006      +/-   ##
==========================================
+ Coverage   76.70%   77.57%   +0.87%     
==========================================
  Files         130      140      +10     
  Lines        4262     4441     +179     
  Branches      567      582      +15     
==========================================
+ Hits         3269     3445     +176     
- Misses        840      842       +2     
- Partials      153      154       +1     

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

Comments