diff options
| author | Raphael Collet <rco@openerp.com> | 2014-09-09 16:28:08 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2014-09-09 17:13:14 +0200 |
| commit | a6269dceadd3e00a67e6c9be884636c03d478c59 (patch) | |
| tree | d531bc94e018a904e3a7abdd765ed0ea5fb4d7ae /addons | |
| parent | 2f1814088f16d704af0350e0b8892d3827c44ae1 (diff) | |
[FIX] web: invoke fields_view_get with kwargs instead of positional args
The mapping old api → new api mistakenly takes the last positional argument as
the context (fields_view_get() has an extra parameter after context.)
Fixes issue #2063
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/js/views.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 932b560d414..e534f5e3d44 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -1617,7 +1617,12 @@ instance.web.fields_view_get = function(args) { if (typeof model === 'string') { model = new instance.web.Model(args.model, args.context); } - return args.model.call('fields_view_get', [args.view_id, args.view_type, args.context, args.toolbar]).then(function(fvg) { + return args.model.call('fields_view_get', { + view_id: args.view_id, + view_type: args.view_type, + context: args.context, + toolbar: args.toolbar + }).then(function(fvg) { return postprocess(fvg); }); }; |
