Print error after update using template builder

Hi,

I just update ERPNext to v6 and now I can’t print anymore my invoices. Here is the error I got

Traceback (innermost last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 25, in render
    data = render_page(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 137, in render_page
    return build(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 146, in build
    return build_method(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 162, in build_page
    context = get_context(path)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 29, in get_context
    context = build_context(context)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/website/context.py", line 75, in build_context
    ret = module.get_context(context)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/print.py", line 36, in get_context
    no_letterhead=frappe.form_dict.no_letterhead),
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/print.py", line 90, in get_html
    print_format))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/templates/pages/print.py", line 184, in get_print_format
    frappe.TemplateNotFoundError)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 257, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 250, in msgprint
    _raise_exception()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 235, in _raise_exception
    raise raise_exception, encode(msg)
 TemplateNotFoundError: No template found at path: /home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/print_format/facture/facture.html

It’s a template based on standard template using the template builder.

Any idea ?

thanks.

Is facture/facture.html at the location indicated in the last line as the error indicates that it doesn’t think it exists.

@jbpin Did you create templates in your erpnext folder?

https://github.com/frappe/frappe/blame/develop/frappe/templates/pages/print.py#L88

That’s the issue. I had to remove print_format.standard=="Yes" and it’s working fine like before.