[FIX] share: action params in url is action, not action_id
When sharing a record to a share user (for instance, the quotation), the action in the url was set to "action_id=" instead of "action=", therefore, the link sent just leaded to nowhere.
This commit is contained in:
parent
8bee3bbfad
commit
0b7db5583f
|
@ -915,8 +915,8 @@ class share_result_line(osv.osv_memory):
|
|||
for this in self.browse(cr, uid, ids, context=context):
|
||||
data = dict(dbname=cr.dbname, login=this.login, password=this.password)
|
||||
if this.share_wizard_id and this.share_wizard_id.action_id:
|
||||
data['action_id'] = this.share_wizard_id.action_id.id
|
||||
ctx = dict(context, share_url_template_hash_arguments=['action_id'])
|
||||
data['action'] = this.share_wizard_id.action_id.id
|
||||
ctx = dict(context, share_url_template_hash_arguments=['action'])
|
||||
result[this.id] = this.share_wizard_id.share_url_template(context=ctx) % data
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in New Issue