[IMP] spreadsheet_dashboard_*: update dashboards

closes odoo/odoo#100343

Related: odoo/enterprise#31407
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
This commit is contained in:
Lucas Lefèvre
2022-09-16 14:25:59 +02:00
parent 0f89912d5b
commit afec5e4f15
5 changed files with 358 additions and 145 deletions
@@ -385,7 +385,7 @@
},
"E32": {
"style": 1,
"content": "[Top Categories](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"product_id\",\"!=\",false]],\"context\":{\"group_by\":[\"product_id\"],\"pivot_measures\":[\"__count\",\"total_amount\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"product_id\"]},\"modelName\":\"hr.expense\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Expenses Analysis\"})",
"content": "[Top Employees](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"product_id\",\"!=\",false]],\"context\":{\"group_by\":[\"product_id\"],\"pivot_measures\":[\"__count\",\"total_amount\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"product_id\"]},\"modelName\":\"hr.expense\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Expenses Analysis\"})",
"border": 1
},
"E33": {
@@ -12,6 +12,9 @@
},
"18": {
"size": 40
},
"19": {
"size": 40
}
},
"cols": {
@@ -52,7 +55,7 @@
},
"A19": {
"style": 1,
"content": "[Operator Analysis](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[],\"pivot_measures\":[\"nbr_channel\",\"time_to_answer\",\"duration\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"partner_id\"]},\"modelName\":\"im_livechat.report.operator\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Operator Analysis\"})",
"content": "[Top Operators](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[],\"pivot_measures\":[\"nbr_channel\",\"time_to_answer\",\"duration\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"partner_id\"]},\"modelName\":\"im_livechat.report.operator\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Operator Analysis\"})",
"border": 1
},
"A20": {
@@ -106,43 +109,42 @@
},
"B20": {
"style": 6,
"content": "Sessions",
"border": 2
},
"B21": {
"style": 7,
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",1)"
"format": 1
},
"B22": {
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",2)"
"format": 1
},
"B23": {
"style": 7,
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",3)"
"format": 1
},
"B24": {
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",4)"
"format": 1
},
"B25": {
"style": 7,
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",5)"
"format": 1
},
"B26": {
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",6)"
"format": 1
},
"B27": {
"style": 7,
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",7)"
"format": 1
},
"B28": {
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",8)"
"format": 1
},
"B29": {
"style": 7,
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",9)"
"format": 1
},
"B30": {
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",10)"
"format": 1
},
"C7": {
"style": 5,
@@ -150,117 +152,313 @@
},
"C20": {
"style": 6,
"content": "Time to answer",
"border": 2
},
"C21": {
"style": 7,
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",1)"
"format": 1
},
"C22": {
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",2)"
"format": 1
},
"C23": {
"style": 7,
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",3)"
"format": 1
},
"C24": {
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",4)"
"format": 1
},
"C25": {
"style": 7,
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",5)"
"format": 1
},
"C26": {
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",6)"
"format": 1
},
"C27": {
"style": 7,
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",7)"
"format": 1
},
"C28": {
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",8)"
"format": 1
},
"C29": {
"style": 7,
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",9)"
"format": 1
},
"C30": {
"format": 1,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",10)"
"format": 1
},
"D20": {
"style": 6,
"content": "Average session (sec)",
"content": "Sessions",
"border": 2
},
"D21": {
"style": 7,
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",1)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",1)"
},
"D22": {
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",2)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",2)"
},
"D23": {
"style": 7,
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",3)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",3)"
},
"D24": {
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",4)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",4)"
},
"D25": {
"style": 7,
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",5)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",5)"
},
"D26": {
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",6)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",6)"
},
"D27": {
"style": 7,
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",7)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",7)"
},
"D28": {
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",8)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",8)"
},
"D29": {
"style": 7,
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",9)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",9)"
},
"D30": {
"format": 1,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",10)"
"content": "=ODOO.PIVOT(3,\"nbr_channel\",\"#partner_id\",10)"
},
"E7": {
"E20": {
"style": 6,
"border": 2
},
"E21": {
"style": 7,
"format": 1
},
"E22": {
"format": 1
},
"E23": {
"style": 7,
"format": 1
},
"E24": {
"format": 1
},
"E25": {
"style": 7,
"format": 1
},
"E26": {
"format": 1
},
"E27": {
"style": 7,
"format": 1
},
"E28": {
"format": 1
},
"E29": {
"style": 7,
"format": 1
},
"E30": {
"format": 1
},
"F7": {
"style": 1,
"content": "[Sessions by Operator](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"partner_id\"],\"graph_measure\":\"nbr_channel\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"partner_id\"]},\"modelName\":\"im_livechat.report.operator\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Operator Analysis\"})",
"border": 1
},
"F7": {
"style": 5,
"border": 1
"F20": {
"style": 6,
"content": "Time to answer (seconds)",
"border": 2
},
"F21": {
"style": 7,
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",1)"
},
"F22": {
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",2)"
},
"F23": {
"style": 7,
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",3)"
},
"F24": {
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",4)"
},
"F25": {
"style": 7,
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",5)"
},
"F26": {
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",6)"
},
"F27": {
"style": 7,
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",7)"
},
"F28": {
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",8)"
},
"F29": {
"style": 7,
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",9)"
},
"F30": {
"format": 2,
"content": "=-ODOO.PIVOT(3,\"time_to_answer\",\"#partner_id\",10)"
},
"G7": {
"style": 5,
"border": 1
},
"G20": {
"style": 6,
"border": 2
},
"G21": {
"style": 7,
"format": 1
},
"G22": {
"format": 1
},
"G23": {
"style": 7,
"format": 1
},
"G24": {
"format": 1
},
"G25": {
"style": 7,
"format": 1
},
"G26": {
"format": 1
},
"G27": {
"style": 7,
"format": 1
},
"G28": {
"format": 1
},
"G29": {
"style": 7,
"format": 1
},
"G30": {
"format": 1
},
"H7": {
"style": 5,
"border": 1
},
"H20": {
"style": 6,
"border": 2
},
"H21": {
"style": 7,
"format": 1
},
"H22": {
"format": 1
},
"H23": {
"style": 7,
"format": 1
},
"H24": {
"format": 1
},
"H25": {
"style": 7,
"format": 1
},
"H26": {
"format": 1
},
"H27": {
"style": 7,
"format": 1
},
"H28": {
"format": 1
},
"H29": {
"style": 7,
"format": 1
},
"H30": {
"format": 1
},
"I20": {
"style": 6,
"content": "Average session (seconds)",
"border": 2
},
"I21": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",1)"
},
"I22": {
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",2)"
},
"I23": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",3)"
},
"I24": {
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",4)"
},
"I25": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",5)"
},
"I26": {
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",6)"
},
"I27": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",7)"
},
"I28": {
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",8)"
},
"I29": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",9)"
},
"I30": {
"format": 2,
"content": "=ODOO.PIVOT(3,\"duration\",\"#partner_id\",10)"
},
"A8": {
"border": 2
},
@@ -279,14 +477,29 @@
"D19": {
"border": 1
},
"E8": {
"border": 2
"E19": {
"border": 1
},
"F8": {
"border": 2
},
"F19": {
"border": 1
},
"G8": {
"border": 2
},
"G19": {
"border": 1
},
"H8": {
"border": 2
},
"H19": {
"border": 1
},
"I19": {
"border": 1
}
},
"conditionalFormats": [],
@@ -531,12 +744,12 @@
},
"D3": {
"style": 7,
"format": 1,
"format": 2,
"content": "=CONCATENATE(-ROUND(B3/60),\"min\")"
},
"D4": {
"style": 7,
"format": 1,
"format": 2,
"content": "=CONCATENATE(ROUND(B4/60),\"min\")"
},
"D5": {
@@ -553,13 +766,13 @@
},
"E3": {
"style": 7,
"format": 1,
"content": "=CONCATENATE(-ROUND(C3/60),\"min\")"
"format": 2,
"content": "=-ROUND(C3/60)"
},
"E4": {
"style": 7,
"format": 1,
"content": "=CONCATENATE(ROUND(C4/60),\"min\")"
"format": 2,
"content": "=ROUND(C4/60)"
},
"E5": {
"style": 8
@@ -604,7 +817,8 @@
}
},
"formats": {
"1": "#,##0"
"1": "0",
"2": "#,##0"
},
"borders": {
"1": {
@@ -696,10 +910,7 @@
[]
],
"measure": "nbr_channel",
"order": "desc",
"originIndexes": [
0
]
"order": "desc"
}
},
"4": {
@@ -4,70 +4,70 @@
{
"id": "sheet1",
"name": "Dashboard",
"colNumber": 26,
"rowNumber": 102,
"colNumber": 9,
"rowNumber": 83,
"rows": {
"6": {
"size": 48
"size": 40
},
"18": {
"size": 41
"size": 40
},
"19": {
"size": 41
"size": 40
},
"31": {
"size": 44
"size": 40
},
"32": {
"size": 44
"size": 40
},
"44": {
"size": 45
"size": 40
},
"45": {
"size": 45
"size": 40
},
"57": {
"size": 45
"size": 40
},
"58": {
"size": 45
"size": 40
},
"70": {
"size": 41
"size": 40
},
"71": {
"size": 41
"size": 40
}
},
"cols": {
"0": {
"size": 131
"size": 175
},
"1": {
"size": 131
"size": 100
},
"2": {
"size": 131
"size": 100
},
"3": {
"size": 131
"size": 100
},
"4": {
"size": 131
"size": 50
},
"5": {
"size": 131
"size": 175
},
"6": {
"size": 131
"size": 100
},
"7": {
"size": 131
"size": 100
},
"8": {
"size": 131
"size": 100
}
},
"merges": [],
@@ -84,7 +84,7 @@
},
"A20": {
"style": 2,
"content": "Order",
"content": "Quotation",
"border": 2
},
"A21": {
@@ -1009,7 +1009,7 @@
},
"F19": {
"style": 1,
"content": "[Sales Orders](odoo://view/{\"viewType\":\"list\",\"action\":{\"domain\":[[\"state\",\"not in\",[\"draft\",\"sent\",\"cancel\"]]],\"context\":{\"group_by\":[]},\"modelName\":\"sale.order\",\"views\":[[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"calendar\"],[false,\"pivot\"],[false,\"graph\"],[false,\"activity\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Orders\"})",
"content": "[Top Sales Orders](odoo://view/{\"viewType\":\"list\",\"action\":{\"domain\":[[\"state\",\"not in\",[\"draft\",\"sent\",\"cancel\"]]],\"context\":{\"group_by\":[]},\"modelName\":\"sale.order\",\"views\":[[false,\"list\"],[false,\"kanban\"],[false,\"form\"],[false,\"calendar\"],[false,\"pivot\"],[false,\"graph\"],[false,\"activity\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Orders\"})",
"border": 1
},
"F20": {
@@ -2002,8 +2002,8 @@
"id": "51823220-f22b-4359-8711-579a249c91bb",
"x": 0,
"y": 0,
"width": 193,
"height": 117,
"width": 200,
"height": 120,
"tag": "chart",
"data": {
"baselineColorDown": "#DC6965",
@@ -2019,10 +2019,10 @@
},
{
"id": "9a38934c-b454-4a4b-88aa-17d1b80dbf5f",
"x": 204,
"y": 2,
"width": 193,
"height": 117,
"x": 210,
"y": 0,
"width": 200,
"height": 120,
"tag": "chart",
"data": {
"baselineColorDown": "#DC6965",
@@ -2038,10 +2038,10 @@
},
{
"id": "67858d0e-b5ba-4a3c-bf9e-c0fceaeedf65",
"x": 407,
"y": 1,
"width": 193,
"height": 117,
"x": 420,
"y": 0,
"width": 200,
"height": 120,
"tag": "chart",
"data": {
"baselineColorDown": "#DC6965",
@@ -2057,10 +2057,10 @@
},
{
"id": "d43375c1-73a6-42a2-8dbd-0f13c285824f",
"x": 611,
"x": 630,
"y": 0,
"width": 193,
"height": 117,
"width": 200,
"height": 120,
"tag": "chart",
"data": {
"baselineColorDown": "#DC6965",
@@ -2077,9 +2077,9 @@
{
"id": "a527960b-0812-4291-baba-f6b4b5280a0d",
"x": 0,
"y": 190,
"width": 859,
"height": 224,
"y": 178,
"width": 1000,
"height": 230,
"tag": "chart",
"data": {
"title": "",
@@ -502,6 +502,7 @@
},
"F20": {
"style": 3,
"content": "Task",
"border": 2
},
"F21": {
@@ -550,6 +551,7 @@
},
"F33": {
"style": 3,
"content": "Employee",
"border": 2
},
"F34": {
@@ -1416,10 +1418,7 @@
[]
],
"measure": "billable_time",
"order": "desc",
"originIndexes": [
0
]
"order": "desc"
}
},
"2": {
@@ -1458,10 +1457,7 @@
[]
],
"measure": "billable_time",
"order": "desc",
"originIndexes": [
0
]
"order": "desc"
}
},
"3": {
@@ -1500,10 +1496,7 @@
[]
],
"measure": "billable_time",
"order": "desc",
"originIndexes": [
0
]
"order": "desc"
}
},
"4": {
@@ -1542,10 +1535,7 @@
[]
],
"measure": "billable_time",
"order": "desc",
"originIndexes": [
0
]
"order": "desc"
}
},
"5": {
@@ -4,31 +4,43 @@
{
"id": "sheet1",
"name": "Dashboard",
"colNumber": 26,
"rowNumber": 100,
"colNumber": 7,
"rowNumber": 30,
"rows": {
"6": {
"size": 40
},
"18": {
"size": 39
"size": 40
},
"31": {
"size": 38
"size": 40
},
"32": {
"size": 38
"size": 40
}
},
"cols": {
"0": {
"size": 200
},
"1": {
"size": 125
},
"2": {
"size": 125
},
"3": {
"size": 100
},
"4": {
"size": 93
"size": 200
},
"5": {
"size": 48
"size": 125
},
"10": {
"size": 93
"6": {
"size": 125
}
},
"merges": [],
@@ -234,9 +246,9 @@
},
{
"id": "1a2f0ccc-460d-405a-aa89-a3f39a771104",
"x": 210,
"x": 202,
"y": 0,
"width": 200,
"width": 192,
"height": 120,
"tag": "chart",
"data": {
@@ -251,9 +263,9 @@
},
{
"id": "1f39216f-cebd-4884-8cfb-27d94e5c2e22",
"x": 630,
"x": 606,
"y": 0,
"width": 200,
"width": 192,
"height": 120,
"tag": "chart",
"data": {
@@ -270,9 +282,9 @@
},
{
"id": "165a7593-a6b6-4c5d-8758-d9b09572fa30",
"x": 840,
"x": 808,
"y": 0,
"width": 200,
"width": 192,
"height": 120,
"tag": "chart",
"data": {
@@ -289,9 +301,9 @@
},
{
"id": "bbd06704-ff49-496b-90dc-e1616f65d613",
"x": 420,
"x": 404,
"y": 0,
"width": 200,
"width": 192,
"height": 120,
"tag": "chart",
"data": {