From dede4d58a9f7a66d4da016b47b271cfef25f98fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 20 Jun 2010 22:25:33 +0200 Subject: [PATCH] Set widget readonly if there is not field for issue1506 --- tryton/gui/window/view_form/view/form_gtk/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/interface.py b/tryton/gui/window/view_form/view/form_gtk/interface.py index 87cde9e68c..adb54fbaa0 100644 --- a/tryton/gui/window/view_form/view/form_gtk/interface.py +++ b/tryton/gui/window/view_form/view/form_gtk/interface.py @@ -256,7 +256,7 @@ class WidgetInterface(object): def display(self, record, field): if not field: - self._readonly_set(self.attrs.get('readonly', False)) + self._readonly_set(self.attrs.get('readonly', True)) self.invisible_set(self.attrs.get('invisible', False)) return self._readonly_set(self.attrs.get('readonly',