summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-10-12 09:46:55 +0200
committerGéry Debongnie <ged@odoo.com>2017-10-12 16:15:06 +0200
commitd4cf4374d1baa529bb651bb3cc32e9db140963a8 (patch)
tree86e6e378793f4acd2c8b402eae3b9c45864e8e2b /addons/web/static/src
parent66b692a5eb2350a8c22e9be0b05f08b8b7f6ae9c (diff)
[FIX] web: allow widget many2many_tags to display more than 40 records
Before this commit, the widget many2many_tags only loaded the first 40 records. This was difficult to see, because there were not so many views with a lot of tags.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/abstract_view.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/abstract_view.js b/addons/web/static/src/js/views/abstract_view.js
index 8eedc4d2c2a..240ce7707a9 100644
--- a/addons/web/static/src/js/views/abstract_view.js
+++ b/addons/web/static/src/js/views/abstract_view.js
@@ -253,7 +253,8 @@ var AbstractView = Class.extend({
return;
}
- attrs.limit = attrs.mode === "tree" ? 80 : 40;
+ attrs.limit = attrs.mode === "tree" ? 80 :
+ (attrs.widget === 'many2many_tags' ? 1000 : 40);
if (attrs.Widget.prototype.useSubview && !attrs.__no_fetch && !attrs.views[attrs.mode]) {
var context = {};