Browse Source

[FIX] when the partner is not set but in the system

pull/37/head
houssine 5 years ago
committed by Rémy Taymans
parent
commit
ee2a845897
  1. 3
      easy_my_coop/models/coop.py

3
easy_my_coop/models/coop.py

@ -553,6 +553,9 @@ class SubscriptionRequest(models.Model):
if domain:
partner = partner_obj.search(domain)
if not partner.cooperator:
partner.cooperator = True
if not partner:
partner = self.create_coop_partner()
else:

Loading…
Cancel
Save