Force reload on save of record

07831c6eddaf implemented the default value as `false` but in tryton it has
always been `True` since b8658ba902a5.
Some save calls relies on the record being reloaded like in the editable tree
when selecting another row.
This synchronise the behavior of all save calls between tryton and sao.

Closes #14345
(grafted from 1c20b8ef85a418d3c00e1495deb203317b4355c1)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2025-11-03 11:16:05 +01:00
1 parent 0263b13fa1
commit a6d9739ba7
1 file changed
+2 -2
+2 -2
View File
@@ -304,7 +304,7 @@
array.save = function() {
var deferreds = [];
this.forEach(function(record) {
deferreds.push(record.save());
deferreds.push(record.save(false));
});
if (!jQuery.isEmptyObject(this.record_deleted)) {
this.record_deleted.forEach(function(record) {
@@ -588,7 +588,7 @@
},
save: function(force_reload) {
if (force_reload === undefined) {
force_reload = false;
force_reload = true;
}
var context = this.get_context();
var prm = jQuery.when();