Skip to Content
Menú
This question has been flagged
1 Respondre
1377 Vistes

Hello everybody,


When I try to send an offer (unconfirmed) by e-mail via the button within the offer I get the following error:


The template inline_template could not be rendered: {{ object.partner_id.lang }}

Within the template which i suppose is giving the error, the language field is blank and i see the greyed out "{{ object.partner_id.lang }}".

The template "Applies to: Sales order" - I was wondering whether this might be the problem. I couldn't find what else it possibly applies to though.


For sales orders, etc. i can use the button to send it via e-mail normally. 
It is just for the status "offer" that i can not send it.


Kind regards and thanks for your help
Paul


Avatar
Descartar
Best Answer

Hi,


Go to Settings > Technical > Email > Templates to edit the template causing the error.


    Search for the email template linked to the sales order or offer, and open it.


    In the Body HTML or any field using inline rendering, locate the line: {{ object.partner_id.lang }}


    Replace it with: {{ object.partner_id.lang or 'en_US' }} to provide a default fallback.


    If there's a chance partner_id itself is not set, use a safer version: {{ object.partner_id and object.partner_id.lang or 'en_US' }}


    Save the changes to the template.


    Test sending the email again from a sales order in offer status.


    The error should no longer appear even if the partner or language is missing.


    This avoids rendering failures and keeps the template functional in all cases.


    You can also set a default language for customers to prevent similar issues in the future.


Hope it helps.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
de des. 19
16292
0
d’ag. 23
1908
0
d’abr. 16
4219
3
de des. 24
5357
3
de set. 23
3061