[FIX] pyeval: be more fault tolerant to avoid wrap null values
bzr revid: mat@openerp.com-20130702141600-4s7oan9yidjrlmcc
This commit is contained in:
parent
9b6f5dca9a
commit
7e4776f2f2
|
@ -671,6 +671,7 @@ openerp.web.pyeval = function (instance) {
|
|||
if (!context.hasOwnProperty(k)) { continue; }
|
||||
var val = context[k];
|
||||
|
||||
if (val === null) { continue; }
|
||||
if (val.constructor === Array) {
|
||||
context[k] = wrapping_list.fromJSON(val);
|
||||
} else if (val.constructor === Object
|
||||
|
|
Loading…
Reference in New Issue