Commit 9adac638 by François COLOMBIER

Adjust condition to retrieve all members who can subsribe shares in envelops search context

parent e08af6b2
Pipeline #3447 failed with stage
in 1 minute 27 seconds
...@@ -812,8 +812,10 @@ class CagetteMember(models.Model): ...@@ -812,8 +812,10 @@ class CagetteMember(models.Model):
cond.append(['is_associated_people', '=', True]) cond.append(['is_associated_people', '=', True])
else: else:
cond.append(['is_associated_people', '=', False]) cond.append(['is_associated_people', '=', False])
cond.append(['cooperative_state', '!=', 'associated']) if search_type != 'envelops':
cond.append(['cooperative_state', '!=', 'associated'])
# cond.append(['cooperative_state', '!=', 'unsubscribed']) # cond.append(['cooperative_state', '!=', 'unsubscribed'])
if search_type == "full" or search_type == 'members' or search_type == "manage_shift_registrations": if search_type == "full" or search_type == 'members' or search_type == "manage_shift_registrations":
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