Jinja Not Parsing

Hello,

I’m not sure why but my Jinja code will simply not parse. I’m trying to execute it in the Terms and Conditions field, and I am editing in code view to ensure everything is clean, but it all just renders as-is with the tags.

Even simply copying/pasting the example:

Delivery Terms for Order number {{ name }}
-Order Date : {{ transaction_date }} 
-Expected Delivery Date : {{ delivery_date }}

Has the field render on the document output as such. No parsing of the details at all:
Delivery Terms for Order number {{ name }}
-Order Date : {{ transaction_date }}
-Expected Delivery Date : {{ delivery_date }}

I’ve also tried appending doc. to each attribute but it didn’t work either.

Any help would be greatly appreciated!

Cheers everyone,

Nathaniel

I created Test Terms with
Terms and conditions for <br><h1>{{ name }}</h1> and saved it.

I created new Quotation and selected the saved t&c. It worked.

Hello @revant_one,

I did the same, and it worked fine. That said, I created a new sales order. The previous attempts were made with draft sales orders that were created before the terms and conditions were created. Even my previous terms that weren’t rendering rendered this time.

So, the only difference in this process it seems is that I am creating a new Sales Order/Quotation/etc. after the Terms and Conditions template was created; it seems I can’t go to draft documents and add the Terms and Conditions in if the Document was created before the Terms and Conditions.

I’m not sure if this is desired functionality, but I will issue a bug report on GitHub just in case.

Thank you for your time Revant! Cheers :slight_smile: