diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:07:49 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-07-25 12:07:49 +0200 |
| commit | 42e493e73efd603002feb92703a82f34c6bc6aea (patch) | |
| tree | 32a49385764688e013f12d849231996c9d8f0358 /addons/web/static/src/js/pyeval.js | |
| parent | b105770bbc0f545a4dfd0482b5b310f534fc1033 (diff) | |
Added Gruntfile with jshint and corrected most js errors
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
Diffstat (limited to 'addons/web/static/src/js/pyeval.js')
| -rw-r--r-- | addons/web/static/src/js/pyeval.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/addons/web/static/src/js/pyeval.js b/addons/web/static/src/js/pyeval.js index 6ce85f8d4a3..02d828001c0 100644 --- a/addons/web/static/src/js/pyeval.js +++ b/addons/web/static/src/js/pyeval.js @@ -795,11 +795,18 @@ openerp.web.pyeval = function (instance) { //noinspection FallthroughInSwitchStatementJS switch(type) { - case 'context': object = [object]; - case 'contexts': return eval_contexts((options.no_user_context ? [] : [instance.session.user_context]).concat(object), context); - case 'domain': object = [object]; - case 'domains': return eval_domains(object, context); - case 'groupbys': return eval_groupbys(object, context); + case 'context': + case 'contexts': + if (type === 'context') + object = [object]; + return eval_contexts((options.no_user_context ? [] : [instance.session.user_context]).concat(object), context); + case 'domain': + case 'domains': + if (type === 'domain') + object = [object]; + return eval_domains(object, context); + case 'groupbys': + return eval_groupbys(object, context); } throw new Error("Unknow evaluation type " + type) }; |
