diff --git a/tryton/gui/window/view_form/view/form_gtk/char.py b/tryton/gui/window/view_form/view/form_gtk/char.py index 0896cb687f..63df6b6332 100644 --- a/tryton/gui/window/view_form/view/form_gtk/char.py +++ b/tryton/gui/window/view_form/view/form_gtk/char.py @@ -10,7 +10,7 @@ class Char(WidgetInterface): self.widget = gtk.HBox() self.entry = gtk.Entry() self.entry.set_property('activates_default', True) - self.entry.set_max_length(int(attrs.get('size', 16))) + self.entry.set_max_length(int(attrs.get('size', 0))) self.entry.set_width_chars(5) self.entry.connect('button_press_event', self._menu_open) diff --git a/tryton/gui/window/view_form/view/form_gtk/float_time.py b/tryton/gui/window/view_form/view/form_gtk/float_time.py index 63bb4a8ff4..141552e942 100644 --- a/tryton/gui/window/view_form/view/form_gtk/float_time.py +++ b/tryton/gui/window/view_form/view/form_gtk/float_time.py @@ -11,7 +11,7 @@ class FloatTime(WidgetInterface): attrs=attrs) self.widget = gtk.Entry() - self.widget.set_max_length(int(attrs.get('size', 11))) + self.widget.set_max_length(11) self.widget.set_visibility(not attrs.get('invisible', False)) self.widget.set_width_chars(5) self.widget.set_property('activates_default', True) diff --git a/tryton/gui/window/view_form/view/form_gtk/url.py b/tryton/gui/window/view_form/view/form_gtk/url.py index 1101f8e042..a9dd5958af 100644 --- a/tryton/gui/window/view_form/view/form_gtk/url.py +++ b/tryton/gui/window/view_form/view/form_gtk/url.py @@ -14,7 +14,7 @@ class URL(WidgetInterface): self.widget = gtk.HBox(homogeneous=False) self.entry = gtk.Entry() - self.entry.set_max_length(int(attrs.get('size', 16))) + self.entry.set_max_length(int(attrs.get('size', 0))) self.entry.set_width_chars(5) self.entry.set_property('activates_default', True) self.entry.connect('activate', self.sig_activate) diff --git a/tryton/gui/window/view_form/widget_search/char.py b/tryton/gui/window/view_form/widget_search/char.py index bf803a620f..8b36226c36 100644 --- a/tryton/gui/window/view_form/widget_search/char.py +++ b/tryton/gui/window/view_form/widget_search/char.py @@ -13,7 +13,7 @@ class Char(Interface): super(Char, self).__init__(name, parent, attrs) self.widget = gtk.Entry() - self.widget.set_max_length(int(attrs.get('size', 16))) + self.widget.set_max_length(int(attrs.get('size', 0))) self.widget.set_width_chars(5) self.widget.set_property('activates_default', True)