Record.get_eval must return only loaded values

Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.

Closes #12415
This commit is contained in:
Cédric Krier
2023-09-24 19:01:07 +02:00
parent a2ba60730b
commit 1c27be9a3e
+1 -1
View File
@@ -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);
}