瀏覽代碼

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 3 年之前
committed by GitHub
父節點
當前提交
ad89c1fcd8
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/utils/print_format.py

+ 1
- 1
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


Loading…
取消
儲存