fix: cast dates in print preview
This commit is contained in:
parent
a71134ee2b
commit
3a11d3cf03
1 changed files with 2 additions and 1 deletions
|
|
@ -342,7 +342,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