Save the record when checkbox is clicked on editable tree view

Since 53ff6c9d8393 checkbox can be toggled even if the record is not the
currently selected record.
When the changed record is not the currently edited record, it must be saved as
editable tree handler will not save it.

Closes #14642
This commit is contained in:
Cédric Krier
2026-04-09 17:28:37 +02:00
parent bbd062a61a
commit 4e97df25ba
+4
View File
@@ -2787,6 +2787,10 @@
fields, false, false)) {
var value = cell.prop('checked');
this.field.set_client(record, value);
if (record !== current_record) {
// we can not rely on editable tree handler to save the row
record.save();
}
} else {
evt.preventDefault();
}