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 <ankushmenat@gmail.com>
This commit is contained in:
parent
78a89fdb99
commit
ad89c1fcd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue