changeset 8d26030d0530 in tryton:5.4 details: https://hg.tryton.org/tryton?cmd=changeset;node=8d26030d0530 description: Returns only Button instance instead of Gtk.Button
The Form.get_buttons must return only the instances created by <button/> and not the Link which are also Gtk.Button. issue9714 review318621002 (grafted from 90071de08bc7b1349d661903f7d0c1f3da173d85) diffstat: tryton/gui/window/view_form/view/form.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 1a15769d9448 -r 8d26030d0530 tryton/gui/window/view_form/view/form.py --- a/tryton/gui/window/view_form/view/form.py Wed Oct 28 00:02:52 2020 +0100 +++ b/tryton/gui/window/view_form/view/form.py Mon Oct 26 21:25:47 2020 +0100 @@ -476,7 +476,7 @@ for w in widgets) def get_buttons(self): - return [b for b in self.state_widgets if isinstance(b, Gtk.Button)] + return [b for b in self.state_widgets if isinstance(b, Button)] def reset(self): record = self.record