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

This commit is contained in:
Raffael Meyer
2025-08-27 13:44:03 +02:00
committed by GitHub
parent 5e9e95e00b
commit e1cac75f85

View File

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