changeset af368cf96791 in tryton:5.2
details: https://hg.tryton.org/tryton?cmd=changeset;node=af368cf96791
description:
        Always delete One2Many record when add_remove attribute is not set

        issue8731
        review264431002
        (grafted from edc7bc6ea230fe44a298e54fe88643db2f895e25)
diffstat:

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

diffs (11 lines):

diff -r c9dcd9e9797e -r af368cf96791 
tryton/gui/window/view_form/view/form_gtk/one2many.py
--- a/tryton/gui/window/view_form/view/form_gtk/one2many.py     Thu Oct 24 
19:16:12 2019 +0200
+++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py     Thu Oct 24 
19:19:55 2019 +0200
@@ -197,6 +197,7 @@
             if remove and self.attrs.get('add_remove'):
                 but = self.but_remove
             else:
+                remove = False
                 but = self.but_del
             if but.get_property('sensitive'):
                 self._sig_remove(widget, remove)

Reply via email to