From 24894330bfea824907d79fcc1a588f40690ffae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 26 Jan 2014 22:17:03 +0100 Subject: [PATCH] Encode gettext value to match with string value issue3587 review2991002 (transplanted from 80a479e15e31f5a97eaf26ddbd3f9a89303c595e) --- tryton/common/domain_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/common/domain_parser.py b/tryton/common/domain_parser.py index bfb325957b..e374140da7 100644 --- a/tryton/common/domain_parser.py +++ b/tryton/common/domain_parser.py @@ -184,7 +184,7 @@ def convert_value(field, value): def convert_boolean(): if isinstance(value, basestring): - return any(test.lower().startswith(value.lower()) + return any(test.decode('utf-8').lower().startswith(value.lower()) for test in (_('y'), _('yes'), _('true'), _('t'), '1')) else: return bool(value)