If I enable Repeat Header and Footer in Print Settings and try to generate PDF I get an error pdf_header_html() got an unexpected keyword argument ‘path’
Traceback with variables (most recent call last):
File “apps/frappe/frappe/app.py”, line 115, in application
response = frappe.api.handle(request)
request = <Request ‘https://xxxxx/api/method/frappe.utils.print_format.download_pdf?doctype=Quotation&name=xxxxxx&format=xxxx&no_letterhead=0&letterhead=xxxx&settings={}&_lang=en’ [GET]>
response = None
rollback = True
e = TypeError(“pdf_header_html() got an unexpected keyword argument ‘path’”)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
request = <Request ‘https://xxxx/api/method/frappe.utils.print_format.download_pdf?doctype=Quotation&name=xxxx&format=xxxx&no_letterhead=0&letterhead=xxxx&settings={}&_lang=en’ [GET]>
endpoint = <function handle_rpc_call at 0x7efd95b8a020>
arguments = {‘method’: ‘frappe.utils.print_format.download_pdf’}
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
method = ‘frappe.utils.print_format.download_pdf’
frappe = <module ‘frappe’ from ‘apps/frappe/frappe/init.py’>
File “apps/frappe/frappe/handler.py”, line 51, in handle
data = execute_cmd(cmd)
cmd = ‘frappe.utils.print_format.download_pdf’
data = None
File “apps/frappe/frappe/handler.py”, line 84, in execute_cmd
return frappe.call(method, **frappe.form_dict)
cmd = ‘frappe.utils.print_format.download_pdf’
from_async = False
server_script = None
method = <function download_pdf at 0x7efd85f87880>
File “apps/frappe/frappe/init.py”, line 1729, in call
return fn(*args, **newargs)
fn = <function download_pdf at 0x7efd85f87880>
args = ()
.
.
.
.
.
path = ‘templates/print_formats/pdf_header_footer.html’
pdf_footer_html = <function pdf_footer_html at 0x7efd929a6f20>
pdf_header_html = <function pdf_header_html at 0x7efd93694d60>
builtins.TypeError: pdf_header_html() got an unexpected keyword argument ‘path’