Custom Doctype HTML printing template

hello, please help me,
is it possible to create an HTML printing template for a custum doctype ?
i created a custom doctype but i need to customize the printing template in jinja html. what i have to do ?
example i have a fileld named ‘designation’ so to show this in html what can i write as code ? i want just know the initiation and the logic.

Create a new Print Format.
Define: DocType, Module,

Select Print Format Type as Server

and start customzing in html box.

To print designation field value user {{ doc.designation }}

I have an example here which shows the code, and the resulting output for a Sales Invoice, but the principle should work on any doctype

1 Like