summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-04-01 08:23:54 +0000
committerXavier Morel <xmo@odoo.com>2020-04-22 11:31:20 +0000
commit34f086607841f59d03318675b646fca3aede2fa9 (patch)
tree29cd9a358e3133cb7ad82c991104718a3db88549 /addons/web/static/src/js/views/basic/basic_controller.js
parent9a93d3db11d0cf7e5e10d4d3578aff73d64a4f61 (diff)
[FIX] core: disable werkzeug's `merge_slashes`
Werkzeug 1.0 adds a `merge_slashes` feature which calls rule.build() *during match*[0] (= during dispatch). However at this point our environment still contains an invalid / placeholder UID, so `display_name` / `name_get()` fails dramatically. One possibility would be to update the slugifying to not access the record (outside of the id) if the environment is not "proper", an other alternative is to just disable the feature since it seems to not have been necessary so far. The latter seems less hacky so do that for now, we can always swap the solution later if we need to. [0] https://github.com/pallets/werkzeug/blame/048cdfd9b969c0c3a133d7ff43b8ad1ad6a673ec/src/werkzeug/routing.py#L904
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions