Browse Source

fix missing new api call

pull/207/head^2
Giacomo Spettoli 9 years ago
parent
commit
3f451ad1f3
  1. 2
      users_ldap_groups/users_ldap_groups.py

2
users_ldap_groups/users_ldap_groups.py

@ -92,7 +92,7 @@ class CompanyLDAP(models.Model):
logger = logging.getLogger('users_ldap_groups')
if self.only_ldap_groups:
logger.debug('deleting all groups from user %d' % user_id)
userobj.write([user_id], {'groups_id': [(5, )]})
user.write({'groups_id': [(5, )]})
for mapping in this.group_mappings:
operator = mapping.operator

Loading…
Cancel
Save