[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:
parent
55f9cbf9c7
commit
bd82569d51
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue