From 12deead274004db9e12c6f7d0fa2aa68cf50a9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 18 Sep 2020 00:07:58 +0200 Subject: [PATCH] Use readonly screen to display Many2Many widget The Many2Many widget should not allow the user to edit the records. The One2Many widget should be used instead. issue9574 review290891002 --- tryton/gui/window/view_form/view/form_gtk/many2many.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/many2many.py b/tryton/gui/window/view_form/view/form_gtk/many2many.py index 9419ccd2e2..0a38ca6508 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2many.py @@ -91,6 +91,7 @@ class Many2Many(Widget): mode=['tree'], views_preload=attrs.get('views', {}), order=attrs.get('order'), row_activate=self._on_activate, + readonly=True, limit=None) self.screen.signal_connect(self, 'record-message', self._sig_label)