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