From 7e7a0072a4a2f38fa41857cb4761c38000b3d48e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 19 Jan 2016 14:12:44 +0100 Subject: [PATCH] [FIX] website_quote: get_access_action To read a quotion, the user must have the access rights or the token of this quotation. Then if a quotation is sent by email with a link to access it, the token of the quotation must be in the link. opw:666618 --- addons/website_quote/models/order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 54c946711bc..d87ff1c6225 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -265,7 +265,7 @@ class sale_order(osv.osv): return super(sale_order, self).get_access_action(cr, uid, ids, context=context) return { 'type': 'ir.actions.act_url', - 'url': '/web/login?redirect=%%2Fquote%%2F%s' % quote.id, + 'url': '/quote/%s/%s' % (quote.id, quote.access_token), 'target': 'self', 'res_id': quote.id, }