diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-01-10 13:53:05 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-01-11 15:07:40 +0000 |
| commit | a7cbac305ed8645ce8ce67210d2ca5d723a891f0 (patch) | |
| tree | 435baa3b0dec241288cc07151c3312f4966dbd15 /addons/web/static/src/js/views/view_dialogs.js | |
| parent | f8e953fdd6eb5d9ce3f6713f9cd06665ca20bb2a (diff) | |
[FIX] web: reset offset in the search more view dialog
Start on the modal obtained by a "search more". The offset is never reset.
So suppose you are on page 2, looking at record 81-160.
Do a research that gives less than 80 records.
The result of the search is nothing, since is has been done with a 80 offset.
It should be reset to 0 when we do a new search.
opw 1920826
closes odoo/odoo#30109
Diffstat (limited to 'addons/web/static/src/js/views/view_dialogs.js')
| -rw-r--r-- | addons/web/static/src/js/views/view_dialogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/view_dialogs.js b/addons/web/static/src/js/views/view_dialogs.js index 163131d47f3..99c56bf8dd1 100644 --- a/addons/web/static/src/js/views/view_dialogs.js +++ b/addons/web/static/src/js/views/view_dialogs.js @@ -264,7 +264,7 @@ var SelectCreateDialog = ViewDialog.extend({ event.stopPropagation(); // prevent this event from bubbling up to the view manager var d = event.data; var searchData = this._process_search_data(d.domains, d.contexts, d.groupbys); - this.list_controller.reload(searchData); + this.list_controller.reload(_.extend({offset: 0}, searchData)); }, get_controller_context: '_onGetControllerContext', }), |
