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:
1 parent
c7c27d3262
commit
7c45a77138
1 file changed
+3
@@ -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;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user