From 18599ffd701edd2cf5dd7e07bc87c6a1cfccb136 Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Tue, 29 Jan 2013 14:43:15 +0530 Subject: [PATCH] [IMP] improve code bzr revid: fka@tinyerp.com-20130129091315-zrg45gu04ztkt5ve --- addons/share/wizard/share_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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':