mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
perf: use cached Authorization control doc (#47948)
This commit is contained in:
@@ -436,7 +436,7 @@ class DeliveryNote(SellingController):
|
|||||||
self.update_pick_list_status()
|
self.update_pick_list_status()
|
||||||
|
|
||||||
# Check for Approving Authority
|
# 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
|
self.doctype, self.company, self.base_grand_total, self
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user