콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
372 화면

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.

아바타
취소