summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2018-02-08 16:49:16 +0000
committerJeremy Kersten <jke@odoo.com>2018-02-13 12:03:20 +0100
commit79f137f342109c2ef5ca3ebc491607a1ea5de549 (patch)
tree925247a6c7642e0f15a1a694ffe8c9ade90a07fb /addons/web/static/src/js/views/basic/basic_model.js
parenta6e66131ce5b676ccc888ec5b1011d0946dc3907 (diff)
[FIX] base: Avoid error when keep_query is used outside an httprequest context
When the utility method `keep_query()` is used outside an httprequest context (e.g. rendering a template from a unittest) the following exception is throwng: `RuntimeError: object unbound` The above exception is caused by the method trying to retrieve parameters from the HTTP request, even if the request object is unbownd. This change ensures those parameters are retrieved only when exists, making possible to use it outside the web client Closes #18841 Closes #22942 Closes opw-815322
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions