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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user