Asset category mandatory validation while fetching item details
diff --git a/erpnext/accounts/doctype/asset/asset.py b/erpnext/accounts/doctype/asset/asset.py
index 4d8a6b4..1118766 100644
--- a/erpnext/accounts/doctype/asset/asset.py
+++ b/erpnext/accounts/doctype/asset/asset.py
@@ -229,6 +229,9 @@
 def get_item_details(item_code):
 	asset_category = frappe.db.get_value("Item", item_code, "asset_category")
 	
+	if not asset_category:
+		frappe.throw(_("Please enter Asset Category in Item {0}").format(item_code))
+	
 	ret = frappe.db.get_value("Asset Category", asset_category, 
 		["depreciation_method", "total_number_of_depreciations", "frequency_of_depreciation"], as_dict=1)