[FIX] website: prevent error to be raised instead of warning logging
There is no method attribute, it was replaced by original_endpoint since httpocalypse at [1]. So entering this `if` condition will actually crash as the logger won't be able to find what it needs. [1]: https://github.com/odoo/odoo/commit/c3714eafbd07f7c7b98ff98bc604d76db4fe1c7b#diff-5f1b777eb0bc30f3f494ffe3e1522524cd0822f6c94c8644070a6db7c40b9c34L905 closes odoo/odoo#107629 X-original-commit: fd84ad8b262ddbee50b93481aa5c5ff11a4eb6f7 Signed-off-by: Julien Castiaux <juc@odoo.com> Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -1113,7 +1113,7 @@ class Website(models.Model):
|
||||
|
||||
if 'sitemap' not in rule.endpoint.routing:
|
||||
logger.warning('No Sitemap value provided for controller %s (%s)' %
|
||||
(rule.endpoint.method, ','.join(rule.endpoint.routing['routes'])))
|
||||
(rule.endpoint.original_endpoint, ','.join(rule.endpoint.routing['routes'])))
|
||||
|
||||
converters = rule._converters or {}
|
||||
if query_string and not converters and (query_string not in rule.build({}, append_unknown=False)[1]):
|
||||
|
||||
Reference in New Issue
Block a user