diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-01-29 09:12:11 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-02-04 12:42:35 +0000 |
| commit | de590816d8d06730d99499db9a068f8d0e2cd3f9 (patch) | |
| tree | a138df14693c2f76614e76cd26a8fcf34d0df631 /addons/website_customer/controllers | |
| parent | eae19fc2cd3496d4b59e4d8029fcceb5eaa3a561 (diff) | |
[FIX] *: deprecated access to url_ utilities through werkzeug root
In 0.15 accessing werkzeug.urls functions directly through werkzeug
is deprecated, the shortcut will be removed in the eventual werkzeug
1.0.
Fix existing uses of these shortcuts. Also cleanup some imports when
they're not far from a werkzeug* import being altered.
Diffstat (limited to 'addons/website_customer/controllers')
| -rw-r--r-- | addons/website_customer/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_customer/controllers/main.py b/addons/website_customer/controllers/main.py index 4a7a931297d..7ef94366be8 100644 --- a/addons/website_customer/controllers/main.py +++ b/addons/website_customer/controllers/main.py @@ -132,7 +132,7 @@ class WebsiteCustomer(http.Controller): 'google_map_partner_ids': google_map_partner_ids, 'pager': pager, 'post': post, - 'search_path': "?%s" % werkzeug.url_encode(post), + 'search_path': "?%s" % werkzeug.urls.url_encode(post), 'tag': tag, 'tags': tags, 'google_maps_api_key': google_maps_api_key, |
