[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:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user