[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 a696913364

opw-632490
This commit is contained in:
Denis Ledoux 2015-04-09 11:39:45 +02:00
parent 223c92f3c0
commit 138cc11a5f
1 changed files with 1 additions and 1 deletions

View File

@ -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: