summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-09-16 16:42:24 +0200
committerRaphael Collet <rco@openerp.com>2014-09-16 17:34:00 +0200
commit2e0189770bce342e52aff9c2b98bbe6d141e23cd (patch)
tree8e766bc74fd5a970435d50daf596449267784300
parent0130ce4e84fdd038aad3b3fc74480bad04122f80 (diff)
[FIX] share/wizard: fix new-api method call incorrectly passing context
-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 4ce33e2be29..e4c50446ebf 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -894,8 +894,8 @@ class share_result_line(osv.osv_memory):
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'])
- result[this.id] = this.share_wizard_id.share_url_template(context=ctx) % data
+ this = this.with_context(share_url_template_hash_arguments=['action_id'])
+ result[this.id] = this.share_wizard_id.share_url_template() % data
return result
_columns = {