changeset 9f03ec7f3f19 in tryton:4.2
details: https://hg.tryton.org/tryton?cmd=changeset;node=9f03ec7f3f19
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 efcf0d2c840c -r 9f03ec7f3f19
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:01:48 2019 +0100
+++ b/tryton/gui/window/view_form/view/list_gtk/widget.py Mon Mar 04
18:58:26 2019 +0100
@@ -915,8 +915,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)