From 3787b9fbe5554caecfbdfa311b4cd4e551f232c5 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 10 Dec 2025 21:57:33 +0530 Subject: [PATCH] fix: check if `terms` is not set in buying controller --- erpnext/controllers/buying_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index 4e3a1cfdc20..a0d51a0c016 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -89,6 +89,7 @@ class BuyingController(SubcontractingController): ) ) and not self.get("tc_name") + and not self.get("terms") ): self.tc_name = default_buying_terms self.terms = frappe.get_value("Terms and Conditions", self.get("tc_name"), "terms")