summaryrefslogtreecommitdiff
path: root/addons/test_website/data
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2021-01-21 13:32:17 +0000
committerJeremy Kersten <jke@odoo.com>2021-01-25 13:36:30 +0000
commit62ee506a94b9fc4a6198c87cb8a2f186ed8bc6d3 (patch)
tree74fcdeaada668e3ed1f9c44635ae15146800b00c /addons/test_website/data
parent13364672745e66563646d47aaecac59460cbf89a (diff)
[FIX] website: handle RequestUID case in slug
Before this commit, a 308 on a route with a modelconverter for a model that have a seo_name field will crash with an exception: Cannot iterate on RequestUID Another simplest solution was to use a with_user(SUPERUSER_ID) but in this case it bypass the security set and display the name of the record even if not yet published. How to reproduce: Create a 308 from /shop/<product> to /mag/<product> Unpublish product 10 Try to access /shop/product-10 You have an unmanaged '500 internal error" because slug_matching -> build -> to_url -> slug with a record with Requestuid as env._uid.
Diffstat (limited to 'addons/test_website/data')
0 files changed, 0 insertions, 0 deletions