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
This commit is contained in:
Cédric Krier
2025-11-03 11:16:05 +01:00
parent 4b9ec5939e
commit e5b29042d8
+2 -2
View File
@@ -315,7 +315,7 @@
array.save = function() {
var deferreds = [];
this.forEach(record => {
deferreds.push(record.save());
deferreds.push(record.save(false));
});
if (!jQuery.isEmptyObject(this.record_deleted)) {
for (const record of this.record_deleted) {
@@ -598,7 +598,7 @@
return false;
}
},
save: function(force_reload=false) {
save: function(force_reload=true) {
var context = this.get_context();
if (this._save_prm.state() == 'pending') {
return this._save_prm.then(() => this.save(force_reload));