changeset de087a40f176 in tryton:default details: https://hg.tryton.org/tryton?cmd=changeset&node=de087a40f176 description: Test editable and activatable property to find editable cells
issue9905 review320971002 diffstat: tryton/gui/window/view_form/view/list_gtk/editabletree.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diffs (21 lines): diff -r e631fd8ce957 -r de087a40f176 tryton/gui/window/view_form/view/list_gtk/editabletree.py --- a/tryton/gui/window/view_form/view/list_gtk/editabletree.py Thu Apr 22 23:45:00 2021 +0200 +++ b/tryton/gui/window/view_form/view/list_gtk/editabletree.py Thu Apr 22 23:47:17 2021 +0200 @@ -13,10 +13,13 @@ def focusable_cells(column, editable=True): for cell in column.get_cells(): - if not editable or isinstance(cell, ( - Gtk.CellRendererText, - Gtk.CellRendererCombo, - Gtk.CellRendererToggle)): + if (not editable + or (isinstance(cell, ( + Gtk.CellRendererText, + Gtk.CellRendererCombo)) + and cell.get_property('editable')) + or (isinstance(cell, Gtk.CellRendererToggle) + and cell.get_property('activatable'))): yield cell