[FIX] if no list limit is specified anywhere, default to 80 on listview initialization
authorXavier Morel <xmo@openerp.com>
Wed, 1 Feb 2012 13:18:48 +0000 (14:18 +0100)
committerXavier Morel <xmo@openerp.com>
Wed, 1 Feb 2012 13:18:48 +0000 (14:18 +0100)
lp bug: https://launchpad.net/bugs/923805 fixed

bzr revid: xmo@openerp.com-20120201131848-b0a0ity490s548c3

addons/web/static/src/js/view_list.js

index f9f845f..94933d5 100644 (file)
@@ -97,7 +97,7 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView#
             this._limit = (this.options.limit
                         || this.defaults.limit
                         || (this.widget_parent.action || {}).limit
-                        || null);
+                        || 80);
         }
         return this._limit;
     },