[IMP] improve code

bzr revid: fka@tinyerp.com-20130129091315-zrg45gu04ztkt5ve
This commit is contained in:
Foram Katharotiya (OpenERP) 2013-01-29 14:43:15 +05:30
parent 105e52adb1
commit 18599ffd70
1 changed files with 1 additions and 1 deletions

View File

@ -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':