Browse Source

[FIX] fix uncovered use case

when a subscription request is created from the wizard on a res partner
view. If the customer wasn't already cooperator, he wasn't flagged as
cooperator.
pull/54/head
houssine 4 years ago
parent
commit
6d9fc8fa95
  1. 1
      easy_my_coop/wizard/create_subscription_from_partner.py

1
easy_my_coop/wizard/create_subscription_from_partner.py

@ -133,6 +133,7 @@ class PartnerCreateSubscription(models.TransientModel):
cooperator = self.cooperator
vals = {'partner_id': cooperator.id,
'cooperator': True,
'share_product_id': self.share_product.id,
'ordered_parts': self.share_qty,
'user_id': self.env.uid,

Loading…
Cancel
Save