Browse Source

[FIX] fix filter

pull/17/head
houssine 5 years ago
parent
commit
1ab411a4de
  1. 4
      easy_my_coop/wizard/update_partner_info.py

4
easy_my_coop/wizard/update_partner_info.py

@ -40,7 +40,7 @@ class PartnerUpdateInfo(models.TransientModel):
('is_company', '=', True)]) ('is_company', '=', True)])
for coop in coops: for coop in coops:
coop_vals = {} coop_vals = {}
sub_reqs = coop.subscription_request_ids.filtered(lambda r: r.state == 'done')
sub_reqs = coop.subscription_request_ids.filtered(lambda r: r.state in ['done', 'paid'])
if sub_reqs: if sub_reqs:
sub_req = sub_reqs sub_req = sub_reqs
if self.legal_form: if self.legal_form:
@ -55,7 +55,7 @@ class PartnerUpdateInfo(models.TransientModel):
('is_company', '=', False)]) ('is_company', '=', False)])
for coop in coops: for coop in coops:
coop_vals = {} coop_vals = {}
sub_reqs = coop.subscription_request_ids.filtered(lambda r: r.state == 'done')
sub_reqs = coop.subscription_request_ids.filtered(lambda r: r.state in ['done', 'paid'])
if sub_reqs: if sub_reqs:
sub_req = sub_reqs sub_req = sub_reqs
if self.birthdate: if self.birthdate:

Loading…
Cancel
Save