From 7ddb2ba096b70a13e62ebd6bfc07d19e203d0718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Oct 2019 19:19:55 +0200 Subject: [PATCH] Always delete One2Many record when add_remove attribute is not set issue8731 review264431002 --- tryton/gui/window/view_form/view/form_gtk/one2many.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tryton/gui/window/view_form/view/form_gtk/one2many.py b/tryton/gui/window/view_form/view/form_gtk/one2many.py index d48a735464..7f72c6bfa6 100644 --- a/tryton/gui/window/view_form/view/form_gtk/one2many.py +++ b/tryton/gui/window/view_form/view/form_gtk/one2many.py @@ -197,6 +197,7 @@ class One2Many(Widget): 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)