Is there a list of {{ variables }} for jinja templates on Print Formats? Trying to find PO status (i.e. "Draft")

Is there a list of all available variables that I can call within jinja template somewhere?

In the “standard” Purchase Order print format template, there is a po status type file that prints “Draft” on the documents, but I don’t know the name of this variable since we can’t look at the “Standard” template.

Anyone have an idea here?

Figured it out. I will reply for myself so others can find solution…

{{ variables }} can be found for each doctype / form type by going to form like Purchase Order…
image

Then click “…” menu, then click “Customize”…

image

The {{ variables }} you can call in print format or wherever else you can call them are listed in the “Name” column here:

So in my case, I was looking for name of the field for Purchase Order that shows if it is in status “DRAFT” or something else… of course this field is just called “status”…

Hope this helps someone!

1 Like