summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>2013-01-29 14:43:15 +0530
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>2013-01-29 14:43:15 +0530
commit18599ffd701edd2cf5dd7e07bc87c6a1cfccb136 (patch)
tree1a11ae7a86398eec503ca916e09e2959c5fb1459 /addons
parent105e52adb1c23c91c62726ef82f0f19731394cb9 (diff)
[IMP] improve code
bzr revid: fka@tinyerp.com-20130129091315-zrg45gu04ztkt5ve
Diffstat (limited to 'addons')
-rw-r--r--addons/share/wizard/share_wizard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py
index aae13f66882..04f893936a2 100644
--- a/addons/share/wizard/share_wizard.py
+++ b/addons/share/wizard/share_wizard.py
@@ -660,7 +660,7 @@ class share_wizard(osv.TransientModel):
self._assert(wizard_data.action_id and wizard_data.access_mode,
_('Action and Access Mode are required to create a shared access.'),
context=context)
- self._assert(self.has_share(cr, uid, context=context),
+ self._assert(self.has_share(cr, uid, False, context=context),
_('You must be a member of the Share/User group to use the share wizard.'),
context=context)
if wizard_data.user_type == 'emails':