Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1526 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
dic 19
16464
0
ago 23
2025
0
apr 16
4462
3
dic 24
5511
3
set 23
3168