fix: check if terms is not set in buying controller

This commit is contained in:
Mihir Kandoi
2025-12-10 21:57:33 +05:30
committed by GitHub
parent 8cb0632081
commit 3787b9fbe5

View File

@@ -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")