[FIX] fixes a crash happening when the context of some attributes does not have a 'group_by' attribute (in the group fields of the search view)

bzr revid: ged@openerp.com-20131227143508-3g04fn2s5u9vxams
This commit is contained in:
Gery Debongnie 2013-12-27 15:35:08 +01:00
parent 868be53bae
commit 66ee322d0f
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ instance.web_graph.Graph = instance.web.Widget.extend({
_.each(g.children, function (g) {
if (g.attrs.context) {
var field_id = py.eval(g.attrs.context).group_by;
self.important_fields.push(field_id);
if (field_id) {
self.important_fields.push(field_id);
}
}
});
});