diff --git a/easy_my_coop/wizard/create_subscription_from_partner.py b/easy_my_coop/wizard/create_subscription_from_partner.py index 2f9cca4..3b9454f 100644 --- a/easy_my_coop/wizard/create_subscription_from_partner.py +++ b/easy_my_coop/wizard/create_subscription_from_partner.py @@ -110,6 +110,7 @@ class PartnerCreateSubscription(models.TransientModel): raise UserError(_("The national register number is not valid.")) if coop_vals: cooperator.write(coop_vals) + self.env.cr.commit() new_sub_req = sub_req.create(vals) return { 'type': 'ir.actions.act_window',