Skip to content

Commit

Permalink
fix: Enqueue PDF creation after commit to avoid stale doc values (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
marination authored Dec 19, 2024
1 parent d466935 commit e6df555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdf_on_submit/attach_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def attach_pdf(doc, event=None):
or frappe.flags.in_test
or frappe.conf.developer_mode
),
enqueue_after_commit=True,
**args,
)

Expand Down

0 comments on commit e6df555

Please sign in to comment.