diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-02-06 12:51:55 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-02-06 12:52:47 +0100 |
| commit | 8bee3bbfad0f3ad5ed69e62c49f178405c49986e (patch) | |
| tree | 72318a909d20cff1d3ce1228e23bbd0646439623 /addons/share | |
| parent | 764be06f4431eb3eb9be4171279345b81d514cc6 (diff) | |
[FIX] share: mail.notification is also transversal
mail.message and mail.notification are transversal: they should not received directly the access rights
Diffstat (limited to 'addons/share')
| -rw-r--r-- | addons/share/wizard/share_wizard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py index e9d83be85cb..f8643fc71b4 100644 --- a/addons/share/wizard/share_wizard.py +++ b/addons/share/wizard/share_wizard.py @@ -508,7 +508,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, @@ -640,7 +640,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: |
