From 7be9c6205a67bd5d009f1b1dbf9725c81e41ae77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 21 Sep 2012 15:51:13 +0200 Subject: [PATCH] Fix deletion of readonly many2one issue2781 review528002 --- tryton/gui/window/view_form/view/form_gtk/many2one.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/gui/window/view_form/view/form_gtk/many2one.py index fc5b0d3496..fbeebaa53f 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -286,6 +286,7 @@ class Many2One(WidgetInterface): and editable): self.sig_activate(widget, event, key_press=True) elif (self.has_target(self.field.get(self.record)) + and editable and event.keyval in (gtk.keysyms.Delete, gtk.keysyms.BackSpace)): self.wid_text.set_text('')