Skip to content

Commit 919abd2

Browse files
fix: Add hooks for repost allowed doctypes
1 parent ed231ab commit 919abd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def start_repost(account_repost_doc=str) -> None:
181181
if not repost_doc.delete_cancelled_entries:
182182
doc.make_gl_entries(1)
183183
doc.make_gl_entries()
184-
else:
184+
elif doc.doctype in frappe.get_hooks("repost_allowed_doctypes"):
185185
if hasattr(doc, "make_gl_entries") and callable(doc.make_gl_entries):
186186
if not repost_doc.delete_cancelled_entries:
187187
if "cancel" in inspect.getfullargspec(doc.make_gl_entries):

0 commit comments

Comments
 (0)