Skip to content

Commit 8a48979

Browse files
author
Houssine BAKKALI
authored
Merge pull request #64 from coopiteasy/12.0-fix_get_confirm_paid_email_template
[12.0] [FIX] get confirm paid email template
2 parents e942ed3 + bb528af commit 8a48979

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

investor_wallet_platform_base/models/mail_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_email_template_by_key(self, mail_template_key, structure):
3838
template_obj = self.env['mail.template']
3939
mail_template = template_obj.search([
4040
('template_key', '=', mail_template_key),
41-
('structure', '=', structure.id)])
41+
('structure', '=', structure.id)], limit=1)
4242

4343
if not mail_template:
4444
raise ValidationError(

investor_wallet_platform_base/views/mail_template.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,15 @@
3131
<field name="domain">[('iwp','=',True)]</field>
3232
</record>
3333

34+
<record model="ir.ui.view" id="email_template_loan_confirm_paid_extension">
35+
<field name="name">email.template.form</field>
36+
<field name="model">mail.template</field>
37+
<field name="inherit_id" ref="easy_my_coop_loan.email_template_loan_confirm_paid"/>
38+
<field name="arch" type="xml">
39+
<field name="email_from" position="before">
40+
<field name="template_key">loan_payment_req</field>
41+
</field>
42+
</field>
43+
</record>
44+
3445
</odoo>

0 commit comments

Comments
 (0)