summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-10-23 15:35:28 +0530
committerPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-10-23 15:35:28 +0530
commita10c7b882b498fdfe2d84700fde65102783a14f0 (patch)
treecd2b2b19abf0647f15f6fa41110dbf749a2ce169 /addons/web/static/src/js/data.js
parent36cc003dc8dd9bb05b64e82753dad66a5bef95ce (diff)
parent9bf9ca7a67a16b83cfa371c1377865e168d6c7dc (diff)
[MERGE] merge with main web
bzr revid: psi@tinyerp.com-20121023100528-w5z1yf2yj6cq1edj
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index 30a8b9862fc..e279ade6fb3 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -135,6 +135,8 @@ instance.web.Query = instance.web.Class.extend({
}).pipe(function (results) {
return _(results).map(function (result) {
// FIX: querygroup initialization
+ result.__context = result.__context || {};
+ result.__context.group_by = result.__context.group_by || [];
_.defaults(result.__context, ctx);
return new instance.web.QueryGroup(
self._model.name, grouping[0], result);
@@ -557,8 +559,7 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({
return this._model.call('name_create', [name], {context: this._model.context()});
},
exec_workflow: function (id, signal) {
- return this._model.exec_workflow(id, signal)
- .pipe(function (result) { return { result: result }; });
+ return this._model.exec_workflow(id, signal);
},
get_context: function(request_context) {
return this._model.context(request_context);