コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
291 ビュー

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

アバター
破棄
最善の回答

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.

アバター
破棄