[FIX] add property length on FilterGroup so SearchView.field knows that it has sub...
authorXavier Morel <xmo@openerp.com>
Fri, 24 Jun 2011 14:05:08 +0000 (16:05 +0200)
committerXavier Morel <xmo@openerp.com>
Fri, 24 Jun 2011 14:05:08 +0000 (16:05 +0200)
lp bug: https://launchpad.net/bugs/801143 fixed

bzr revid: xmo@openerp.com-20110624140508-9yhxwhd9myhisso1

addons/base/static/src/js/search.js

index cd69ec4..6efa698 100644 (file)
@@ -377,6 +377,7 @@ openerp.base.search.FilterGroup = openerp.base.search.Widget.extend({
     init: function (filters, view) {
         this._super(view);
         this.filters = filters;
+        this.length = filters.length;
     },
     start: function () {
         this._super();