[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:
Xavier Morel 2011-10-17 15:41:03 +02:00
parent e58c70f065
commit 789b0b6524
1 changed files with 6 additions and 0 deletions

View File

@ -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);