Skip to Content
Menu
This question has been flagged

Hi,

I tried to make some changes to the Invoice: send by email template, Originally I add date through place holder & tried to preview the template, it was not showing any thing so reverted the changes & then again tried to preview the template still it was not showing any thing. Even after reverting to original format it is not previewing any thing. I even tried to view/ render the email template by sending an invoice email it was showing blank.

There is also another template which is showing raw code when I tried to preview the template.

Tech Spec:

Version: odoo14

OS: Ubuntu 18

Web Server: Apache

===============================================================

The code is as below:

Subject: ${object.company_id.name} Invoice (Ref ${object.number or 'n/a'})

Dear ${object.partner_id.name} % if object.partner_id.parent_id: (${object.partner_id.parent_id.name}) % endif

Here is your % if object.number: invoice ${object.number} % else: invoice %endif % if object.origin: (with reference: ${object.origin}) % endif amounting in ${format_amount(object.amount_total, object.currency_id)} from ${object.company_id.name}. % if object.state=='paid': This invoice is already paid. % else: Please remit payment at your earliest convenience. % endif

Do not hesitate to contact us if you have any questions.


=======================================================================================






Avatar
Discard
Related Posts Replies Views Activity
1
Apr 24
320
3
Oct 23
6412
1
Sep 21
2033
2
Nov 24
244
6
Sep 24
27524