From 138cc11a5fd45cd09dde431b91c3f41ce700206f Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 9 Apr 2015 11:39:45 +0200 Subject: [PATCH] [FIX] website_sale_options: option modal within foreign languages If the default language of the visitor is not the default language of the website (If the default website lang is en_US, and the visitor browser is configured in nl_NL, the default language visitor will be nl_NL), the go to cart button in the option modal was no longer working. This is related to revision a696913364ffc4d5f1ce0675bc9be82f84f3ff93 opw-632490 --- addons/website_sale_options/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_options/controllers/main.py b/addons/website_sale_options/controllers/main.py index 95e981fe77c..5d1f14670d3 100644 --- a/addons/website_sale_options/controllers/main.py +++ b/addons/website_sale_options/controllers/main.py @@ -22,7 +22,7 @@ class website_sale_options(website_sale): r.qcontext['optional_product_ids'] = optional_product_ids return r - @http.route(['/shop/cart/update_option'], type='http', auth="public", methods=['POST'], website=True) + @http.route(['/shop/cart/update_option'], type='http', auth="public", methods=['POST'], website=True, multilang=False) def cart_options_update_json(self, product_id, add_qty=1, set_qty=0, goto_shop=None, lang=None, **kw): cr, uid, context, pool = request.cr, request.uid, request.context, request.registry if lang: