From 1c27be9a3e5871c791432f644b819d599d1a9f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 24 Sep 2023 19:01:07 +0200 Subject: [PATCH] Record.get_eval must return only loaded values Sao must behave the same way as tryton does with the changeset 4d2bd7127a51. Closes #12415 --- sao/src/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/model.js b/sao/src/model.js index 431fec0974..07f06edf45 100644 --- a/sao/src/model.js +++ b/sao/src/model.js @@ -1013,7 +1013,7 @@ get_eval: function() { var value = {}; for (var key in this.model.fields) { - if (!this.model.fields.hasOwnProperty(key) && this.id >= 0) + if (!this._loaded.hasOwnProperty(key) && this.id >= 0) continue; value[key] = this.model.fields[key].get_eval(this); }