changeset 09c749466af7 in tryton:default details: https://hg.tryton.org/tryton?cmd=changeset;node=09c749466af7 description: Search for '..' only on string value in domain parser
The value can be a list if ';' is used. issue8706 review254381002 diffstat: tryton/common/domain_parser.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 56365ed1ded5 -r 09c749466af7 tryton/common/domain_parser.py --- a/tryton/common/domain_parser.py Tue Oct 08 18:08:06 2019 +0200 +++ b/tryton/common/domain_parser.py Fri Oct 11 11:40:42 2019 +0200 @@ -1298,7 +1298,7 @@ operator = '=' if field['type'] in ('integer', 'float', 'numeric', 'datetime', 'date', 'time'): - if value and '..' in value: + if isinstance(value, str) and '..' in value: lvalue, rvalue = value.split('..', 1) lvalue = convert_value(field, lvalue, self.context) rvalue = convert_value(field, rvalue, self.context)