[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:
parent
868be53bae
commit
66ee322d0f
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue