[IMP] stop displaying *big* filters when a filter-in-field has a @string
also log a debug warning to the console bzr revid: xmo@openerp.com-20111017134103-cojd352p3ppqs68h
This commit is contained in:
parent
e58c70f065
commit
789b0b6524
|
@ -643,6 +643,12 @@ openerp.web.search.Field = openerp.web.search.Input.extend( /** @lends openerp.w
|
|||
this.attrs = _.extend({}, field, view_section.attrs);
|
||||
this.filters = new openerp.web.search.FilterGroup(_.map(
|
||||
view_section.children, function (filter_node) {
|
||||
if (filter_node.attrs.string &&
|
||||
typeof console !== 'undefined' && console.debug) {
|
||||
console.debug("Filter-in-field with a 'string' attribute "
|
||||
+ "in view", view);
|
||||
}
|
||||
delete filter_node.attrs.string;
|
||||
return new openerp.web.search.Filter(
|
||||
filter_node, view);
|
||||
}), view);
|
||||
|
|
Loading…
Reference in New Issue