Merge pull request #42824 from khushi8112/asset-creation-timeout-error

perf: asset creation from purchase receipt
This commit is contained in:
Khushi Rawat
2024-08-20 13:41:46 +05:30
committed by GitHub

View File

@@ -905,7 +905,7 @@ def transfer_asset(args):
@frappe.whitelist()
def get_item_details(item_code, asset_category, gross_purchase_amount):
asset_category_doc = frappe.get_doc("Asset Category", asset_category)
asset_category_doc = frappe.get_cached_doc("Asset Category", asset_category)
books = []
for d in asset_category_doc.finance_books:
books.append(