Many2One.get must not return undefined value

When setting undefined as value of an Object, the key is deleted within the
json-rpc call.
This commit is contained in:
Cédric Krier committed 2013-08-23 14:02:23 +02:00
1 parent c7c27d3262
commit 7c45a77138
1 file changed
+3
+3
View File
@@ -1226,6 +1226,9 @@
_default: null,
get: function(record) {
var value = record._values[this.name];
if (value === undefined) {
value = this._default;
}
// TODO force parent
return value;
},