From abedf2cdfed196f7a33ea8165d4990acd759d60f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 14 Jan 2023 19:53:50 +0100 Subject: [PATCH] Use the same width chars in tryton than in sao This unifies even more the rendering between clients. --- tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py | 1 + tryton/tryton/gui/window/view_form/view/form_gtk/widget.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py index fa24ab65bd..6a612a2226 100644 --- a/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -19,6 +19,7 @@ _ = gettext.gettext class Many2One(Widget): + default_width_chars = 12 def __init__(self, view, attrs): super(Many2One, self).__init__(view, attrs) diff --git a/tryton/tryton/gui/window/view_form/view/form_gtk/widget.py b/tryton/tryton/gui/window/view_form/view/form_gtk/widget.py index b88ed75d17..47f3a29c2d 100644 --- a/tryton/tryton/gui/window/view_form/view/form_gtk/widget.py +++ b/tryton/tryton/gui/window/view_form/view/form_gtk/widget.py @@ -16,7 +16,7 @@ _ = gettext.gettext class Widget(object): expand = False - default_width_chars = 25 + default_width_chars = 8 def __init__(self, view, attrs): super(Widget, self).__init__()