Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1379 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
3
dic 19
16298
0
ago 23
1910
0
abr 16
4221
3
dic 24
5358
3
sept 23
3061