Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
298 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć