changeset d7a75abccfa4 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=d7a75abccfa4
description:
        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
diffstat:

 tryton/gui/window/view_form/view/form_gtk/many2many.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 83287ed2d759 -r d7a75abccfa4 
tryton/gui/window/view_form/view/form_gtk/many2many.py
--- a/tryton/gui/window/view_form/view/form_gtk/many2many.py    Thu Sep 17 
17:18:02 2020 +0200
+++ b/tryton/gui/window/view_form/view/form_gtk/many2many.py    Fri Sep 18 
00:07:58 2020 +0200
@@ -91,6 +91,7 @@
             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)
 

Reply via email to