summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/abstract_controller.js
diff options
context:
space:
mode:
authoraab-odoo <aab@odoo.com>2020-02-24 10:17:15 +0000
committeraab-odoo <aab@odoo.com>2020-02-25 14:15:32 +0000
commita39cc6bc00df1a72cb12cfaa9c56cbe9fafaee83 (patch)
tree5cbd02f08c9513ab4b8cd045ba49900b73c34596 /addons/web/static/src/js/views/abstract_controller.js
parent36d4ff5c4c9e68a9b5eb2b2425670aecf2f9a53a (diff)
[FIX] web: grouped list with pager: reset offset on search
Have a grouped list view with enough groups to have several pages. Go to the second page, and toggle a filter s.t. it only remains a single page of groups. Before this commit, no group is displayed (like if there was no record matching the domain), whereas it should display groups of page 1. The issue occurs because we didn't reset the group offset to 0, like we do for the regular offset. Bug reported in the v13 migration pad. closes odoo/odoo#46257 X-original-commit: c6a4123b25e884495c5c44287d4d9fed061eeaa4 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/abstract_controller.js')
-rw-r--r--addons/web/static/src/js/views/abstract_controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/abstract_controller.js b/addons/web/static/src/js/views/abstract_controller.js
index a0152e5ccc4..aa612cbea01 100644
--- a/addons/web/static/src/js/views/abstract_controller.js
+++ b/addons/web/static/src/js/views/abstract_controller.js
@@ -618,7 +618,7 @@ var AbstractController = mvc.Controller.extend(ActionMixin, WidgetAdapterMixin,
*/
_onSearch: function (ev) {
ev.stopPropagation();
- this.reload(_.extend({offset: 0}, ev.data));
+ this.reload(_.extend({offset: 0, groupsOffset: 0}, ev.data));
},
/**
* @private