changeset f9d6549b6687 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=f9d6549b6687
description:
        Save modified record even if value to write is empty

        issue8511
        review279761002
diffstat:

 src/model.js |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 359aa5ea74b5 -r f9d6549b6687 src/model.js
--- a/src/model.js      Thu Jul 25 10:20:22 2019 +0200
+++ b/src/model.js      Thu Jul 25 10:25:34 2019 +0200
@@ -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 {

Reply via email to