Browse Source

[FIX] fix the case where two share type has been flaged as default.

Return the first one
pull/1/head
houssine 7 years ago
parent
commit
f6a608dbdb
  1. 2
      easy_my_coop/wizard/create_subscription_from_partner.py

2
easy_my_coop/wizard/create_subscription_from_partner.py

@ -26,7 +26,7 @@ class PartnerCreateSubscription(models.TransientModel):
else:
domain.append(('by_individual','=',True))
return self.env['product.product'].search(domain)
return self.env['product.product'].search(domain)[0]
@api.model
def _get_partner(self):

Loading…
Cancel
Save