From 94447b39c5a7110946185f6baa767492075036a8 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 6 Aug 2019 15:06:59 +0200 Subject: [PATCH] [FIX] fix retrieving mail template through self.env.ref --- easy_my_coop/models/coop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index a5aee01..e05c570 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -384,7 +384,7 @@ class SubscriptionRequest(models.Model): return res def send_capital_release_request(self, invoice): - email_template = self.env.ref('email_template_release_capital', False) + email_template = self.env.ref('easy_my_coop.email_template_release_capital', False) # we send the email with the capital release request in attachment # TODO remove sudo() and give necessary access right