From 8a0ab47a6475cb0323f1f554d70e9e34ca4ea9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 25 Jul 2019 10:25:34 +0200 Subject: [PATCH] Save modified record even if value to write is empty issue8511 review279761002 --- src/model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model.js b/src/model.js index 1dd515665c..6806613659 100644 --- a/src/model.js +++ b/src/model.js @@ -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 {