Ver a proveniência

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 há 3 anos
committed by GitHub
ascendente
cometimento
ad89c1fcd8
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      frappe/utils/print_format.py

+ 1
- 1
frappe/utils/print_format.py Ver ficheiro

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


Carregando…
Cancelar
Guardar