perf: use cached Authorization control doc (#47948)
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user