Browse Source

[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
pull/1/head
houssine 6 years ago
parent
commit
1bb6656823
  1. 1
      easy_my_coop/wizard/create_subscription_from_partner.py

1
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',

Loading…
Cancel
Save