changeset 8950a9d74310 in sao:5.0 details: https://hg.tryton.org/sao?cmd=changeset;node=8950a9d74310 description: Set invisible state when rendering Affix
Without initial state, cell is displaying prefix or suffix even when empty. issue9763 review306761002 (grafted from 7a3a46b224741918d045c92e29bb690b5c48a334) diffstat: src/view/tree.js | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (11 lines): diff -r cc1ca047984c -r 8950a9d74310 src/view/tree.js --- a/src/view/tree.js Wed Oct 28 23:56:28 2020 +0100 +++ b/src/view/tree.js Thu Oct 29 00:01:48 2020 +0100 @@ -1516,6 +1516,7 @@ record.load(this.attributes.name).done(function() { var value; var field = record.model.fields[this.attributes.name]; + field.set_state(record, ['invisible']); var invisible = field.get_state_attrs(record).invisible; if (invisible) { cell.hide();