details: https://code.tryton.org/tryton/commit/f8cac4c04b0b
branch: default
user: Cédric Krier <[email protected]>
date: Thu Jun 11 10:37:29 2026 +0200
description:
Do not strip wildcard for number clause when searching work per record
name
The strip of wildcard is usually applied for code not number.
Closes #14882
diffstat:
modules/project/work.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r 95fb6332fd9b -r f8cac4c04b0b modules/project/work.py
--- a/modules/project/work.py Tue Jun 09 10:48:51 2026 +0200
+++ b/modules/project/work.py Thu Jun 11 10:37:29 2026 +0200
@@ -15,7 +15,6 @@
from trytond.modules.company.model import CompanyMultiValueMixin
from trytond.pool import Pool
from trytond.pyson import Bool, Eval, Id, If, PYSONEncoder, TimeDelta
-from trytond.tools import is_full_text, lstrip_wildcard
from trytond.transaction import Transaction
from .exceptions import WorkProgressValidationError
@@ -491,11 +490,8 @@
bool_op = 'AND'
else:
bool_op = 'OR'
- code_value = value
- if operator.endswith('like') and is_full_text(value):
- code_value = lstrip_wildcard(value)
domain = [bool_op,
- ('number', operator, code_value),
+ ('number', operator, value),
super().search_rec_name(name, clause),
]
return domain