Ir al contenido
Menú
Se marcó esta pregunta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 24
1818
3
oct 23
8073
1
sept 21
3257
1
jun 25
2339
2
ene 25
1024