Browse Source

[FIX] confirmation mail template fix variable name

pull/1/head
houssine 6 years ago
parent
commit
a3a8d2faa8
  1. 4
      easy_my_coop/models/coop.py

4
easy_my_coop/models/coop.py

@ -48,7 +48,7 @@ class subscription_request(models.Model):
vals['already_cooperator'] = True
subscr_request = super(subscription_request, self).create(vals)
mail_template_obj = self.env['mail.template']
certificat_email_template = self.env.ref('easy_my_coop.email_template_confirmation', False)
confirmation_mail_template = self.env.ref('easy_my_coop.email_template_confirmation', False)
confirmation_mail_template.send_mail(subscr_request.id)
return subscr_request
@ -62,7 +62,7 @@ class subscription_request(models.Model):
vals['already_cooperator'] = True
subscr_request = super(subscription_request, self).create(vals)
mail_template_obj = self.env['mail.template']
certificat_email_template = self.env.ref('easy_my_coop.email_template_confirmation_company', False)
confirmation_mail_template = self.env.ref('easy_my_coop.email_template_confirmation_company', False)
confirmation_mail_template.send_mail(subscr_request.id, True)
return subscr_request

Loading…
Cancel
Save