mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
fix: check if terms is not set in buying controller
This commit is contained in:
@@ -89,6 +89,7 @@ class BuyingController(SubcontractingController):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
and not self.get("tc_name")
|
and not self.get("tc_name")
|
||||||
|
and not self.get("terms")
|
||||||
):
|
):
|
||||||
self.tc_name = default_buying_terms
|
self.tc_name = default_buying_terms
|
||||||
self.terms = frappe.get_value("Terms and Conditions", self.get("tc_name"), "terms")
|
self.terms = frappe.get_value("Terms and Conditions", self.get("tc_name"), "terms")
|
||||||
|
|||||||
Reference in New Issue
Block a user