diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py index 1ccf7353ae..8552e69ebd 100644 --- a/tryton/gui/window/view_form/model/field.py +++ b/tryton/gui/window/view_form/model/field.py @@ -336,6 +336,13 @@ class IntegerField(FloatField): except ValueError: return self._default + def set_client(self, record, value, force_change=False, factor=1): + return super(IntegerField, self).set_client(record, value, + force_change=force_change, factor=int(factor)) + + def get_client(self, record, factor=1): + return super(IntegerField, self).get_client(record, factor=int(factor)) + class BooleanField(CharField):