[FIX] share: res.users API change to avoid global var usage
bzr revid: odo@openerp.com-20111215154220-824h7pcuj4o4n5ms
This commit is contained in:
parent
308c975967
commit
c2670d16f7
|
@ -28,10 +28,11 @@ class res_groups(osv.osv):
|
|||
help="Group created to set access rights for sharing data with some users.")
|
||||
}
|
||||
|
||||
def __init__(self, pool, cr):
|
||||
super(res_groups, self).__init__(pool, cr)
|
||||
# add domain in get_groups_by_application()
|
||||
self.groups_by_application_domain.append(('share', '=', False))
|
||||
def get_application_groups(self, cr, uid, domain=None, context=None):
|
||||
if domain is None:
|
||||
domain = []
|
||||
domain.append(('share', '=', False))
|
||||
return super(res_groups, self).get_application_groups(cr, uid, domain=domain, context=context)
|
||||
|
||||
res_groups()
|
||||
|
||||
|
|
Loading…
Reference in New Issue