diff --git a/sao/src/model.js b/sao/src/model.js index 29f8c5a619..f53af4c4c7 100644 --- a/sao/src/model.js +++ b/sao/src/model.js @@ -379,10 +379,12 @@ if (new_.length && added.length) { this.model.execute('default_get', [added, this.context]) .then(values => { - for (const record of new_) { - record.set_default(values, true, false); + if (!jQuery.isEmptyObject(values)) { + for (const record of new_) { + record.set_default(values, true, false); + } + this.record_modified(); } - this.record_modified(); }); } };