跳至内容
菜单
此问题已终结

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.


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






形象
丢弃
相关帖文 回复 查看 活动
1
4月 24
1965
3
10月 23
8231
1
9月 21
3382
1
6月 25
2418
2
1月 25
1126