Pārlūkot izejas kodu

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>
version-14
KrithiRamani pirms 3 gadiem
committed by GitHub
vecāks
revīzija
ad89c1fcd8
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      frappe/utils/print_format.py

+ 1
- 1
frappe/utils/print_format.py Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt