72A99537-A0FB-4A61-A850-0BF2BAA6120A

Monolithon is now backendo! Read more...

Please enter at least 3 characters.

Custom Print Formats and Translations in ERPNext

It is good to know that in ERPNext, custom print formats do not automatically display the header and footer. You can set the header as follows: {% if…
1 min read
Custom Print Formats and Translations in ERPNext


It is good to know that in ERPNext, custom print formats do not automatically display the header and footer. You can set the header as follows:

{% if letter_head and not no_letterhead -%}
{% if print_settings.repeat_header_footer %}
   <br>  <div class="letter-head">{{ letter_head }}</div>
{%- endif %}{%- endif %}

You should follow a similar approach for the footer.

However, one thing to keep in mind is that the system offers translations only for the built-in (Standard) print formats. If you create a custom print format (based on an existing one), the labels must be entered in English as follows:

{{ _("Field Label Text in English") }}

Later, you can use the ERPNext built-in translation tool to translate the labels into your desired language.

Explore more articles by Sherry

Post a Comment

Comment Shortcodes

  • To insert an image, add [img]image_link[/img]
  • To insert a block of code, add [pre]parsed_code[/pre]
  • To insert a link, add [link=your_link]link_text[/link]
  • To insert a quote, add [quote]quote_text[/quote]
  • To insert a code, add [code]parsed_code[/code]