From 1bb665682372182e15addac4b00f34a8028b9397 Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 15 Jan 2018 12:19:09 +0100 Subject: [PATCH] [FIX] force commit on cr as it is needed in case of the email address has been added to be able to send the email --- 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 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',