fix: dashboard fixtures and FAR chart
diff --git a/erpnext/assets/dashboard_fixtures.py b/erpnext/assets/dashboard_fixtures.py
index 22c4a3e..93a0654 100644
--- a/erpnext/assets/dashboard_fixtures.py
+++ b/erpnext/assets/dashboard_fixtures.py
@@ -53,7 +53,7 @@
"name": "Location-wise Asset Value",
"chart_name": "Location-wise Asset Value",
"chart_type": "Report",
- "report_name": "Location-wise Asset Value",
+ "report_name": "Fixed Asset Report",
"is_custom": 1,
"x_field": "location",
"timeseries": 0,
diff --git a/erpnext/assets/onboarding_step/introduction_to_assets/introduction_to_assets.json b/erpnext/assets/onboarding_step/introduction_to_assets/introduction_to_assets.json
index 8aceafd..d48dd1c 100644
--- a/erpnext/assets/onboarding_step/introduction_to_assets/introduction_to_assets.json
+++ b/erpnext/assets/onboarding_step/introduction_to_assets/introduction_to_assets.json
@@ -11,6 +11,6 @@
"modified_by": "Administrator",
"name": "Introduction to Assets",
"owner": "Administrator",
- "title": "Introduction to Fixed Asset Management",
+ "title": "Introduction to Assets",
"video_url": "https://www.youtube.com/watch?v=I-K8pLRmvSo"
}
\ No newline at end of file
diff --git a/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py b/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py
index 81db576..0b4b334 100644
--- a/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py
+++ b/erpnext/assets/report/fixed_asset_register/fixed_asset_register.py
@@ -92,9 +92,9 @@
def prepare_chart_data(data):
labels, asset_values, depreciated_amounts = [], [], []
for d in data:
- labels.append(d.asset_id)
- asset_values.append(d.asset_value)
- depreciated_amounts.append(d.depreciated_amount)
+ labels.append(d.get("asset_id"))
+ asset_values.append(d.get("asset_value"))
+ depreciated_amounts.append(d.get("depreciated_amount"))
return {
"data" : {