Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1409 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
gru 19
16328
0
sie 23
1936
0
kwi 16
4245
3
gru 24
5388
3
wrz 23
3078