I would like to change the text Sales Invoice in the heading of my invoice template.
What jinja code should I use? I tried with {{ doc.type }} but it doesnt work.
I want the Sales invoice to be translated to Facture de vente in french.
With the default invoice template it’s tranlated but not in a custom one.
Thanks
To translate the message or field value you will need to use the _(msg, lang=None) method.
Where msg will be your field value and lang is language code available in frappe.
e.g. {{ _(doc.type) }}
If lang is not provided then system will take the user’s default language to translate.