Add logging info about the modified fields of a record

issue10944
review374131002
This commit is contained in:
Cédric Krier committed 2021-12-08 00:38:55 +01:00
1 parent 51128b0d03
commit 41dfdd21c6
1 file changed
+8 -1
+8 -1
View File
@@ -583,7 +583,14 @@
this.destroyed = false;
},
has_changed: function() {
return !jQuery.isEmptyObject(this._changed);
if (!jQuery.isEmptyObject(this._changed)) {
Sao.Logger.info(
"Modified fields of %s@%s", this.id, this.model.name,
Object.keys(this._changed));
return true;
} else {
return false;
}
},
save: function(force_reload) {
if (force_reload === undefined) {