Commit e3ad4cc7 by François C.

Fix search bug

parent 6a0a6120
Pipeline #1732 passed with stage
in 1 minute 36 seconds
...@@ -729,6 +729,7 @@ class CagetteMember(models.Model): ...@@ -729,6 +729,7 @@ class CagetteMember(models.Model):
cond = [['barcode', '=', str(key)]] cond = [['barcode', '=', str(key)]]
else: else:
cond = [['name', 'ilike', str(key)]] cond = [['name', 'ilike', str(key)]]
cond.append(['is_member', '=', True])
# cond.append(['cooperative_state', '!=', 'unsubscribed']) # cond.append(['cooperative_state', '!=', 'unsubscribed'])
fields = CagetteMember.m_default_fields fields = CagetteMember.m_default_fields
if not shift_id is None: if not shift_id is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment