summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.contentMenu.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-04-20 08:18:05 +0000
committerXavier Morel <xmo@odoo.com>2020-04-27 07:34:05 +0000
commit0ce9165ca58ff1c7a8849194f945fdabd4b5687c (patch)
tree594faf9086f7c6cd9320dffdc8204d09ccaa6d57 /addons/website/static/src/xml/website.contentMenu.xml
parent52d49d635f95141e4115cb038bbacac6fc9bdc37 (diff)
[FIX] website: search_pages w/ werkzeug 0.15 or higher
The (private) Rule.build method takes a values *dict* parameter. From the start it was called with an invalid argument, but before 0.15 `append_unknown` would lead to just not using the argument at all unless the rule is dynamic (aka has converters)[0]. In 0.15 the code was refactored and the `values` mapping is now used in every case[1], leading to a pretty systematic error when calling `search_pages`, which occurs any time an auto-completed URL field gets used on the website e.g. when converting text to a link using the page editor or when trying to update menu items. Fixing this in 13.0 because while the current debian stable ("buster") still bundles 0.14, the soon-to-be-released Ubuntu LTS (20.04) updates werkzeug to 0.16. Debian Testing (bullseye) also bundles 0.16 but isn't expected to get released for another year so it's less of a concern. Fixes #47356 Relates to odoo/docker#299 [0] https://github.com/pallets/werkzeug/blob/c769200d1dcf1e21daaa2781f0c5109586daad42/werkzeug/routing.py#L797-L828 [1] https://github.com/pallets/werkzeug/blob/048cdfd9b969c0c3a133d7ff43b8ad1ad6a673ec/src/werkzeug/routing.py#L1020-L1032 closes odoo/odoo#50194 X-original-commit: 4f1589075d2aae65c67a01c5c0f75c19c50a61d6 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/website/static/src/xml/website.contentMenu.xml')
0 files changed, 0 insertions, 0 deletions