diff options
| author | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-04-24 14:59:25 +0530 |
|---|---|---|
| committer | Amit Patel (OpenERP) <apa@tinyerp.com> | 2012-04-24 14:59:25 +0530 |
| commit | dfc4e3fb0979d76e47376680fbefc2a33e38bcd3 (patch) | |
| tree | 148f0e02cda3f890f40f0003d92334a44752e867 /addons/share/wizard | |
| parent | c6bcc6d69fd7a1f8de0ad93baa642d5801b96a32 (diff) | |
| parent | e9f015e217f1ff48d95e9b55a9515b7276240c48 (diff) | |
[MERGE]
bzr revid: apa@tinyerp.com-20120417112722-7rz5vvcg6eo0jf3e
bzr revid: apa@tinyerp.com-20120419051214-j4wvjp9kz1w0zqs7
bzr revid: apa@tinyerp.com-20120423053400-unc6y6lonksopys3
bzr revid: apa@tinyerp.com-20120424092925-ezqfnppvfgocj94t
Diffstat (limited to 'addons/share/wizard')
| -rw-r--r-- | addons/share/wizard/share_wizard.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py index 854f021bf67..07004f333a8 100644 --- a/addons/share/wizard/share_wizard.py +++ b/addons/share/wizard/share_wizard.py @@ -189,7 +189,7 @@ class share_wizard(osv.osv_memory): 'invite': False, 'domain': lambda self, cr, uid, context, *a: context.get('domain', '[]'), 'action_id': lambda self, cr, uid, context, *a: context.get('action_id'), - 'access_mode': 'readonly', + 'access_mode': 'readwrite', 'embed_option_title': True, 'embed_option_search': True, } @@ -502,6 +502,8 @@ class share_wizard(osv.osv_memory): # Create required rights if allowed by current user rights and not # 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 values = { 'name': _('Copied access for sharing'), 'group_id': group_id, @@ -632,6 +634,8 @@ class share_wizard(osv.osv_memory): domain = safe_eval(wizard_data.domain) 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 related_domain = [] if not rel_field: continue for element in domain: |
