Skip to content
Snippets Groups Projects
Commit 1f968d8a authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] board: keep group by in context when adding to dashboard

lp bug: https://launchpad.net/bugs/1187512 fixed

bzr revid: mat@openerp.com-20130808150040-ki91kbfie9ink8u0
parents 8938503a fd4c5ad7
No related branches found
No related tags found
No related merge requests found
......@@ -381,6 +381,10 @@ instance.board.AddToDashboard = instance.web.search.Input.extend({
_.each(data.contexts, context.add, context);
_.each(data.domains, domain.add, domain);
context.add({
group_by: instance.web.pyeval.eval('groupbys', data.groupbys || [])
});
var c = instance.web.pyeval.eval('context', context);
for(var k in c) {
if (c.hasOwnProperty(k) && /^search_default_/.test(k)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment