From 882a72ef50e86cc1963a8ca075b70b53755729ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Oct 2008 13:46:27 +0200 Subject: [PATCH] Set combobox of reference field also insensitive when it is readonly --- tryton/gui/window/view_form/view/form_gtk/reference.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/reference.py b/tryton/gui/window/view_form/view/form_gtk/reference.py index fcac820d81..6e144581f5 100644 --- a/tryton/gui/window/view_form/view/form_gtk/reference.py +++ b/tryton/gui/window/view_form/view/form_gtk/reference.py @@ -118,6 +118,7 @@ class Reference(WidgetInterface): def _readonly_set(self, value): self._readonly = value + self.widget_combo.set_sensitive(not value) self.wid_text.set_editable(not value) self.wid_text.set_sensitive(not value) self.but_new.set_sensitive(not value)