diff --git a/tryton/gui/window/view_form/view/form_gtk/dictionary.py b/tryton/gui/window/view_form/view/form_gtk/dictionary.py index 414b09b8a8..2f91c22155 100644 --- a/tryton/gui/window/view_form/view/form_gtk/dictionary.py +++ b/tryton/gui/window/view_form/view/form_gtk/dictionary.py @@ -234,7 +234,9 @@ class DictIntegerEntry(DictEntry): return widget def get_value(self): - return int(self.widget.value) + if self.widget.value is not None: + return int(self.widget.value) + return None def set_value(self, value): if value is not None: