From 7926cfd8c408214c95ab63a7ad2bdf332988c539 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:13:39 +0200 Subject: [PATCH] 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) --- erpnext/regional/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/regional/__init__.py b/erpnext/regional/__init__.py index bd5d5401035..e2c791071af 100644 --- a/erpnext/regional/__init__.py +++ b/erpnext/regional/__init__.py @@ -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