Merge pull request #37511 from safwansamsudeen/print-preview-dates
This commit is contained in:
commit
4e9bc5703b
1 changed files with 2 additions and 1 deletions
|
|
@ -343,7 +343,8 @@ def get_html_and_style(
|
|||
if isinstance(name, str):
|
||||
document = frappe.get_lazy_doc(doc, name, check_permission=True)
|
||||
else:
|
||||
document = frappe.get_doc(json.loads(doc), check_permission=True)
|
||||
details = json.loads(doc)
|
||||
document = frappe.get_cached_doc(details["doctype"], details["name"], check_permission=True)
|
||||
|
||||
print_format = get_print_format_doc(print_format, meta=document.meta)
|
||||
set_link_titles(document)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue