Browse Source

[FIX] don't error out on empty group condition

pull/236/head
Holger Brunn 9 years ago
parent
commit
9d626f207c
  1. 2
      auth_dynamic_groups/model/res_groups.py

2
auth_dynamic_groups/model/res_groups.py

@ -37,7 +37,7 @@ class res_groups(models.Model):
result = all(
self.mapped(
lambda this: safe_eval(
this.dynamic_group_condition,
this.dynamic_group_condition or 'False',
{
'user': self.env.user,
'any': any,

Loading…
Cancel
Save