changeset 6acae824f7fa in tryton:4.6
details: https://hg.tryton.org/tryton?cmd=changeset;node=6acae824f7fa
description:
Allow to click button on readonly record in tree view
issue8154
review47861002
(grafted from 999d726059aed41d396ad444bacbe62db65dc045)
diffstat:
tryton/gui/window/view_form/view/list_gtk/widget.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diffs (12 lines):
diff -r 7bc6befea93f -r 6acae824f7fa
tryton/gui/window/view_form/view/list_gtk/widget.py
--- a/tryton/gui/window/view_form/view/list_gtk/widget.py Fri Mar 15
19:00:47 2019 +0100
+++ b/tryton/gui/window/view_form/view/list_gtk/widget.py Mon Mar 04
18:58:26 2019 +0100
@@ -910,8 +910,6 @@
def setter(self, column, cell, store, iter):
record = store.get_value(iter, 0)
states = record.expr_eval(self.attrs.get('states', {}))
- if record.group.readonly or record.readonly:
- states['readonly'] = True
invisible = states.get('invisible', False)
cell.set_property('visible', not invisible)
readonly = states.get('readonly', False)