Browse Source

Merge pull request #373 from hbrunn/8.0-auth_dynamic_groups-fix_newstyle_call

[FIX] we need to call our login method old style
pull/384/head
Pedro M. Baeza 9 years ago
parent
commit
e831cb2a50
  1. 2
      auth_dynamic_groups/model/res_groups.py

2
auth_dynamic_groups/model/res_groups.py

@ -60,4 +60,4 @@ class res_groups(models.Model):
def action_evaluate(self): def action_evaluate(self):
res_users = self.env['res.users'] res_users = self.env['res.users']
for user in res_users.search([]): for user in res_users.search([]):
res_users.update_dynamic_groups(user.id, self.env.cr.dbname)
res_users._model.update_dynamic_groups(user.id, self.env.cr.dbname)
Loading…
Cancel
Save