changeset 5481cc812166 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=5481cc812166
description:
        Store binary data once fetched

        issue10170
        review341671002
diffstat:

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

diffs (14 lines):

diff -r 9f7cab2d5c3a -r 5481cc812166 src/model.js
--- a/src/model.js      Thu Mar 11 23:34:44 2021 +0100
+++ b/src/model.js      Tue Mar 16 22:03:28 2021 +0100
@@ -2672,7 +2672,9 @@
                 var context = record.get_context();
                 prm = record.model.execute('read', [[record.id], [this.name]],
                     context).then(function(data) {
-                        return data[0][this.name];
+                        data = data[0][this.name];
+                        this.set(record, data);
+                        return data;
                     }.bind(this));
             }
             return prm;

Reply via email to