From cd6c8986436ab5d0b23f861de75495d90ad7ac51 Mon Sep 17 00:00:00 2001 From: rde Date: Mon, 9 Oct 2017 13:27:11 +0200 Subject: [PATCH] [FIX] website_sale_options: public user can't add item to cart Before this commit, clicking on add to cart as a public user* would throw an error because it would access uom.name on which public user has no right. *From the product page (/shop/product/xxx) having an optional product, the access error is really on the optional product. Now, we allow user to read name with sudo(). --- .../views/website_sale_options_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_options/views/website_sale_options_templates.xml b/addons/website_sale_options/views/website_sale_options_templates.xml index 4f0cc1cf1bc..e19b6895156 100644 --- a/addons/website_sale_options/views/website_sale_options_templates.xml +++ b/addons/website_sale_options/views/website_sale_options_templates.xml @@ -121,7 +121,7 @@ Add