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