diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-03-27 17:13:57 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-03-27 17:13:57 +0200 |
| commit | 94c7dff4eafb5b64ae6326d31e12fda03b209b74 (patch) | |
| tree | 90a45223990683a0346edee229bc0f7e834313bd /addons/web/static/src/js/views.js | |
| parent | cc88233248b6f4bd9e088d6ed832adb66c02e439 (diff) | |
[FIX] usage issue of py.eval: in py.js 0.4, it returns a JS object not a PY object, so .toJSON should not be called on the result
bzr revid: xmo@openerp.com-20120327151357-4en4skjqb66b816c
Diffstat (limited to 'addons/web/static/src/js/views.js')
| -rw-r--r-- | addons/web/static/src/js/views.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 5be0fad74f0..43ecc8444fc 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -763,7 +763,7 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner _(log_records.reverse()).each(function (record) { var context = {}; if (record.context) { - try { context = py.eval(record.context).toJSON(); } + try { context = py.eval(record.context); } catch (e) { /* TODO: what do I do now? */ } } $(_.str.sprintf('<li><a href="#">%s</a></li>', record.name)) |
