fix: add option to disable Transaction Log (backport #49342) (#49344)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
fix: add option to disable Transaction Log (#49342)
This commit is contained in:
mergify[bot]
2025-08-27 14:13:39 +02:00
committed by GitHub
parent be6f79330a
commit 7926cfd8c4

View File

@@ -19,6 +19,9 @@ def create_transaction_log(doc, method):
Appends the transaction to a chain of hashed logs for legal resons. Appends the transaction to a chain of hashed logs for legal resons.
Called on submit of Sales Invoice and Payment Entry. Called on submit of Sales Invoice and Payment Entry.
""" """
if frappe.conf.get("disable_transaction_log", False):
return
region = get_region() region = get_region()
if region not in ["Germany"]: if region not in ["Germany"]:
return return