fix: Handle empty chart state and change desk dashboard
This commit is contained in:
parent
a74d433cd8
commit
75c65fd1b1
@ -40,8 +40,8 @@
|
|||||||
"category": "Modules",
|
"category": "Modules",
|
||||||
"charts": [
|
"charts": [
|
||||||
{
|
{
|
||||||
"chart_name": "Purchase Analytics",
|
"chart_name": "Purchase Order Trends",
|
||||||
"label": "Buying Analytics"
|
"label": "Purchase Order Trends"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"charts_label": "Buying Dashboard",
|
"charts_label": "Buying Dashboard",
|
||||||
@ -54,7 +54,7 @@
|
|||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_standard": 1,
|
"is_standard": 1,
|
||||||
"label": "Buying",
|
"label": "Buying",
|
||||||
"modified": "2020-05-15 14:26:42.505702",
|
"modified": "2020-05-15 23:41:09.307288",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Buying",
|
"name": "Buying",
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"documentation_url": "https://docs.erpnext.com/docs/user/manual/en/buying",
|
"documentation_url": "https://docs.erpnext.com/docs/user/manual/en/buying",
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"is_complete": 0,
|
"is_complete": 0,
|
||||||
"modified": "2020-05-15 14:39:16.514904",
|
"modified": "2020-05-15 23:42:35.625736",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Buying",
|
"name": "Buying",
|
||||||
|
@ -19,7 +19,7 @@ def execute(filters=None):
|
|||||||
data = get_data(conditions, filters)
|
data = get_data(conditions, filters)
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
return [], []
|
return [], [], None, []
|
||||||
|
|
||||||
data, chart_data = prepare_data(data, filters)
|
data, chart_data = prepare_data(data, filters)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user