[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:
@@ -915,8 +915,8 @@ class share_result_line(osv.osv_memory):
|
|||||||
for this in self.browse(cr, uid, ids, context=context):
|
for this in self.browse(cr, uid, ids, context=context):
|
||||||
data = dict(dbname=cr.dbname, login=this.login, password=this.password)
|
data = dict(dbname=cr.dbname, login=this.login, password=this.password)
|
||||||
if this.share_wizard_id and this.share_wizard_id.action_id:
|
if this.share_wizard_id and this.share_wizard_id.action_id:
|
||||||
data['action_id'] = this.share_wizard_id.action_id.id
|
data['action'] = this.share_wizard_id.action_id.id
|
||||||
ctx = dict(context, share_url_template_hash_arguments=['action_id'])
|
ctx = dict(context, share_url_template_hash_arguments=['action'])
|
||||||
result[this.id] = this.share_wizard_id.share_url_template(context=ctx) % data
|
result[this.id] = this.share_wizard_id.share_url_template(context=ctx) % data
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user