[FIX] correctly save group_by context key when saving a search to a dashboard

bzr revid: xmo@openerp.com-20120518094443-boszrcvibitbrozf
This commit is contained in:
Xavier Morel
2012-05-18 11:44:43 +02:00
parent f64b43b370
commit f03d64365b
+3
View File
@@ -310,6 +310,9 @@ openerp.web.SearchView = openerp.web.OldWidget.extend(/** @lends openerp.web.Sea
_.each(data.contexts, function(x) {
context.add(x);
});
context.add({
group_by: _(data.groupbys).pluck('group_by')
});
_.each(data.domains, function(x) {
domain.add(x);
});