perf: use cached Authorization control doc (#47948)

This commit is contained in:
Ankush Menat
2025-06-06 19:39:47 +05:30
committed by GitHub
parent 45a4beb401
commit 7d88d9dd4d

View File

@@ -436,7 +436,7 @@ class DeliveryNote(SellingController):
self.update_pick_list_status()
# Check for Approving Authority
frappe.get_doc("Authorization Control").validate_approving_authority(
frappe.get_cached_doc("Authorization Control").validate_approving_authority(
self.doctype, self.company, self.base_grand_total, self
)