summaryrefslogtreecommitdiff
path: root/addons/share/wizard
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-06 12:59:07 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-06 12:59:07 +0100
commit0b7db5583f9b3b40c94ff7ed81cfb6bc2f3bd37e (patch)
tree197ad0ad3718a4ec243008a5bda785e188166efd /addons/share/wizard
parent8bee3bbfad0f3ad5ed69e62c49f178405c49986e (diff)
[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.
Diffstat (limited to 'addons/share/wizard')
-rw-r--r--addons/share/wizard/share_wizard.py4
1 files 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