diff --git a/tryton/tryton/common/number_entry.py b/tryton/tryton/common/number_entry.py index c6eb228ef2..91a52aa011 100644 --- a/tryton/tryton/common/number_entry.py +++ b/tryton/tryton/common/number_entry.py @@ -53,7 +53,7 @@ class NumberEntry(Gtk.Entry, Gtk.Editable): value = None if text not in ['-', self.__decimal_point]: try: - value = Decimal(locale.atof(text)) + value = Decimal(str(locale.atof(text))) except (ValueError, InvalidOperation): return position if (value and self.__digits is not None