Skip to content

Commit

Permalink
feat: add param letterhead to frappe.get_print (#18989) (#19034)
Browse files Browse the repository at this point in the history
* feat: add param letterhead to frappe.get_print

(cherry picked from commit 73f0256)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed Nov 29, 2022
1 parent ca520e0 commit c887be5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frappe/__init__.py
Expand Up @@ -1988,6 +1988,7 @@ def get_print(
no_letterhead=0,
password=None,
pdf_options=None,
letterhead=None,
):
"""Get Print Format for given document.
Expand All @@ -2006,6 +2007,7 @@ def get_print(
local.form_dict.style = style
local.form_dict.doc = doc
local.form_dict.no_letterhead = no_letterhead
local.form_dict.letterhead = letterhead

pdf_options = pdf_options or {}
if password:
Expand Down

0 comments on commit c887be5

Please sign in to comment.