summaryrefslogtreecommitdiff
path: root/addons/share
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-06 14:02:43 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-06 14:02:43 +0100
commitf92b2f8d4d246ec65fe4a15e871a6d7d8da6921f (patch)
treed1545b0b9ca577396634a4f8d7b131ee1149d14a /addons/share
parent0c9b8cd7af478e9f105534627fdb2be38d8c92f0 (diff)
parent0b7db5583f9b3b40c94ff7ed81cfb6bc2f3bd37e (diff)
[MERGE] forward port of branch 7.0 up to 0b7db55
Diffstat (limited to 'addons/share')
-rw-r--r--addons/share/wizard/share_wizard.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py
index 10937015dd6..7e43c3d2d42 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -490,7 +490,7 @@ class share_wizard(osv.TransientModel):
# already granted
for dummy, model in fields_relations:
# mail.message is transversal: it should not received directly the access rights
- if model.model in ['mail.message']: continue
+ if model.model in ['mail.message', 'mail.notification']: continue
values = {
'name': _('Copied access for sharing'),
'group_id': group_id,
@@ -622,7 +622,7 @@ class share_wizard(osv.TransientModel):
if domain:
for rel_field, model in fields_relations:
# mail.message is transversal: it should not received directly the access rights
- if model.model in ['mail.message']: continue
+ if model.model in ['mail.message', 'mail.notification']: continue
related_domain = []
if not rel_field: continue
for element in domain:
@@ -896,8 +896,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