fix: printview context
This commit is contained in:
parent
45f67aa9d6
commit
5bbc330c45
1 changed files with 2 additions and 4 deletions
|
|
@ -30,11 +30,9 @@ def get_context(context):
|
|||
else:
|
||||
doc = frappe.get_doc(frappe.form_dict.doctype, frappe.form_dict.name)
|
||||
|
||||
if frappe.form_dict.settings:
|
||||
settings = frappe.parse_json(frappe.form_dict.settings)
|
||||
settings = frappe.parse_json(frappe.form_dict.settings)
|
||||
|
||||
if frappe.form_dict.letterhead:
|
||||
letterhead = frappe.form_dict.letterhead
|
||||
letterhead = frappe.form_dict.letterhead or None
|
||||
|
||||
meta = frappe.get_meta(doc.doctype)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue