[FIX] pyeval: be more fault tolerant to avoid wrap null values

bzr revid: mat@openerp.com-20130702141600-4s7oan9yidjrlmcc
This commit is contained in:
Martin Trigaux 2013-07-02 16:16:00 +02:00
parent 9b6f5dca9a
commit 7e4776f2f2
1 changed files with 1 additions and 0 deletions

View File

@ -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