From 0b7db5583f9b3b40c94ff7ed81cfb6bc2f3bd37e Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Fri, 6 Feb 2015 12:59:07 +0100 Subject: [PATCH] [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. --- addons/share/wizard/share_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py index f8643fc71b4..c01ad220be1 100644 --- a/addons/share/wizard/share_wizard.py +++ b/addons/share/wizard/share_wizard.py @@ -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