[FIX] website_quote: online quotation

To show the translation linked to an order, the controller "/quote/<int:order_id>" must consider the context to browse
the order_id.

opw:632349
This commit is contained in:
Goffin Simon 2015-04-14 16:58:39 +02:00
parent 55f9cbf9c7
commit bd82569d51
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class sale_quote(http.Controller):
def view(self, order_id, token=None, message=False, **post):
# use SUPERUSER_ID allow to access/view order for public user
# only if he knows the private token
order = request.registry.get('sale.order').browse(request.cr, token and SUPERUSER_ID or request.uid, order_id)
order = request.registry.get('sale.order').browse(request.cr, token and SUPERUSER_ID or request.uid, order_id, request.context)
now = time.strftime('%Y-%m-%d')
if token:
if token != order.access_token: