Skip to Content
Menu
This question has been flagged
1 Odpoveď
293 Zobrazenia

Hi everybody,


my odoo 17 use the wrong email template for my subscription mails. How can i solve this issue?


Thanks and BR


Rafael


Picture 1: Desired E-Mail Template:


Picture 2: The reality

Avatar
Zrušiť
Best Answer

Hi,


Go to Settings > Technical > Email > Templates.


Search and open the email template used for subscription or recurring invoice emails.


In the Subject field, replace ${....} with {{....}} for proper rendering.


Example: use {{ format_date(object.create_date, 'MMMM') }} instead of ${....}.


In the Body (HTML) section, do not use {{...}} or ${...}.


Instead, use QWeb syntax like <t t-out="object.partner_id.name"/>.


Replace all dynamic fields in the body using <t t-out="..."/>.


Save the email template after making these changes.


Send a test email or preview to confirm the correct output.


The email will now show the actual values (like customer name and date) instead of raw template code.


Hope it helps.

Avatar
Zrušiť