From a3a8d2faa867d28333a40969d19fbfa7f1b6f05d Mon Sep 17 00:00:00 2001 From: houssine Date: Thu, 20 Dec 2018 10:36:45 +0100 Subject: [PATCH] [FIX] confirmation mail template fix variable name --- easy_my_coop/models/coop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index 2e5d9fc..3203223 100644 --- a/easy_my_coop/models/coop.py +++ b/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