Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1430 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
pro 19
16342
0
srp 23
1941
0
dub 16
4266
3
pro 24
5418
3
zář 23
3094