Save modified record even if value to write is empty

issue8511
review279761002
This commit is contained in:
Cédric Krier committed 2019-07-25 10:25:34 +02:00
1 parent e0af8fbfb3
commit 8a0ab47a64
1 file changed
+2 -2
+2 -2
View File
@@ -503,8 +503,8 @@
}
var context = this.get_context();
var prm = jQuery.when();
var values = this.get();
if ((this.id < 0) || !jQuery.isEmptyObject(values)) {
if ((this.id < 0) || this.has_changed()) {
var values = this.get();
if (this.id < 0) {
// synchronous call to avoid multiple creation
try {