[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
This commit is contained in:
Goffin Simon
2016-01-19 16:30:24 +01:00
parent ddcc62c6dd
commit 7e7a0072a4
+1 -1
View File
@@ -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,
}