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)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2026-05-19 17:33:44 +02:00
1 parent 1a6286e68f
commit 7116f3fd37
1 file changed
+1 -1
+1 -1
View File
@@ -2591,7 +2591,7 @@
fields, false, false, true)) {
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();
}