From ad89c1fcd859ec297d9832ccbf2df478f9f60ccf Mon Sep 17 00:00:00 2001 From: KrithiRamani Date: Fri, 1 Oct 2021 09:43:59 +0530 Subject: [PATCH] Update frappe/utils/print_format.py As suggested, moved new args to the end for supporting non-kwarg function calls. Co-authored-by: Ankush Menat --- frappe/utils/print_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/print_format.py b/frappe/utils/print_format.py index 0a12c1cca7..6dfa3a350b 100644 --- a/frappe/utils/print_format.py +++ b/frappe/utils/print_format.py @@ -98,7 +98,7 @@ def report_to_pdf(html, orientation="Landscape"): frappe.local.response.type = "pdf" @frappe.whitelist() -def print_by_server(doctype, name, printer_setting, print_format=None, doc=None, file_path=None,no_letterhead=0): +def print_by_server(doctype, name, printer_setting, print_format=None, doc=None, no_letterhead=0, file_path=None): print_settings = frappe.get_doc("Network Printer Settings", printer_setting) try: import cups