Skip to content

Commit

Permalink
fix: set doc reference in error log (backport #55) (#56)
Browse files Browse the repository at this point in the history
* fix: set doc reference in error log (#55)

(cherry picked from commit abaffb2)

# Conflicts:
#	pdf_on_submit/attach_pdf.py

* chore: resolve conflicts

---------

Co-authored-by: Raffael Meyer <[email protected]>
  • Loading branch information
mergify[bot] and barredterra authored Dec 19, 2024
1 parent de5d336 commit 4425968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf_on_submit/attach_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def publish_progress(percent):
msg = _("Failed to attach XML to PDF for Sales Invoice {0}").format(name)
if show_progress:
frappe.msgprint(msg, indicator="red", alert=True)
frappe.log_error(title=msg)
frappe.log_error(title=msg, reference_doctype=doctype, reference_name=name)

if show_progress:
publish_progress(66)
Expand Down

0 comments on commit 4425968

Please sign in to comment.