Skip to Content
Menu
This question has been flagged
2 Replies
774 Views

Hi
After migrating to ODOO 15, all mails no longer resolve any code. The mail in preview as well as the recived mail will look like this:

Subject: 

${object.company_id.name} ${object.state in ('draft', 'sent') and (ctx.get('proforma') and 'Proforma' or 'Quotation') or 'Order'} (Ref ${object.name or 'n/a' })


What is the problem?

Avatar
Discard
Author Best Answer

Thanks
But unfortunatly this is not the only thing that changed. Also the if-statements as I saw in a new template. The mails are completly new designed.
Is there a way to load (replace) all templates with the standard ones? 

Avatar
Discard
Best Answer

Hi, 

The variables in Odoo15 changed to {{ }} rather than ${} so 

${object.company_id.name} will be {{object.company_id.name}}

So change it accordingly. 

{{ object.company_id.name }} {{ object.state in ('draft', 'sent') and (ctx.get('proforma') and 'Proforma' or 'Quotation') or 'Order' }} (Ref {{ object.name or 'n/a' }})


Avatar
Discard