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:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user