details:   https://code.tryton.org/tryton/commit/b6e70524daa1
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Tue May 19 17:33:44 2026 +0200
description:
        Do not save record in editable tree view with parent when checkbox is 
toggled

        The parent record is responsible to save the records which is part of a 
field.

        Closes #14848
        (grafted from a20b069dd1699260f029e93ee2e0c306a15fe155)
diffstat:

 sao/src/view/tree.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 78ed809fbb15 -r b6e70524daa1 sao/src/view/tree.js
--- a/sao/src/view/tree.js      Tue May 19 17:18:34 2026 +0200
+++ b/sao/src/view/tree.js      Tue May 19 17:33:44 2026 +0200
@@ -2762,7 +2762,7 @@
                 fields, false, false)) {
                 var value = cell.prop('checked');
                 this.field.set_client(record, value);
-                if (record !== current_record) {
+                if ((!this.group.parent) & (record !== current_record)) {
                     // we can not rely on editable tree handler to save the row
                     record.save();
                 }

Reply via email to