HI everyone…
how to echo the full status of document using jinja template ?
{{doc.docstatus}} will give only 0,1,2 but how to get Draft or submitted or canceled?
HI everyone…
how to echo the full status of document using jinja template ?
{{doc.docstatus}} will give only 0,1,2 but how to get Draft or submitted or canceled?
{{ doc.docstatus }} gives you 0 for draft 1 for submitted 2 for cancel
if you want status like Draft, Submitted, Cancelled.
use {{ doc.status }}