From 6d9fc8fa951d51b6a4be6e28edc04df94c994233 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 17 Dec 2019 12:23:41 +0100 Subject: [PATCH] [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. --- easy_my_coop/wizard/create_subscription_from_partner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/easy_my_coop/wizard/create_subscription_from_partner.py b/easy_my_coop/wizard/create_subscription_from_partner.py index fbceb86..0c908f9 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/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,