Debian Codegraph @

addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json

raw
1 {
2 "version": "18.5.10",
3 "sheets": [
4 {
5 "id": "sheet1",
6 "name": "Dashboard",
7 "colNumber": 7,
8 "rowNumber": 69,
9 "rows": {
10 "6": { "size": 40 },
11 "26": { "size": 40 },
12 "46": { "size": 40 },
13 "47": { "size": 40 },
14 "48": { "size": 29 },
15 "49": { "size": 29 },
16 "50": { "size": 29 },
17 "51": { "size": 29 },
18 "52": { "size": 29 },
19 "53": { "size": 29 },
20 "54": { "size": 29 },
21 "55": { "size": 29 },
22 "56": { "size": 29 },
23 "57": { "size": 29 }
24 },
25 "cols": {
26 "0": { "size": 275 },
27 "1": { "size": 100 },
28 "2": { "size": 100 },
29 "3": { "size": 50 },
30 "4": { "size": 275 },
31 "5": { "size": 100 },
32 "6": { "size": 100 }
33 },
34 "merges": [],
35 "cells": {
36 "A7": "[Best Sellers by Revenue](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[[\"state\", \"not in\", [\"draft\", \"sent\", \"cancel\"]]],\"context\":{\"group_by\":[\"product_id\"],\"graph_measure\":\"price_subtotal\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"product_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Best Sellers by Revenue\"})",
37 "A27": "[Best Sellers by Units Sold](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[[\"state\", \"not in\", [\"draft\", \"sent\", \"cancel\"]]],\"context\":{\"group_by\":[\"product_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"product_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})",
38 "A47": "[Best Selling Products](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[[\"state\", \"not in\", [\"draft\", \"sent\", \"cancel\"]]],\"context\":{\"group_by\":[\"product_id\"],\"pivot_measures\":[\"__count\",\"price_subtotal\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"product_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})",
39 "A48": "=PIVOT(1, 10, FALSE, FALSE)",
40 "E48": "=PIVOT(2, 10, FALSE, FALSE)"
41 },
42 "styles": {
43 "A7": 1,
44 "A27": 1,
45 "A47": 1,
46 "E47": 1,
47 "A48": 2,
48 "E48": 2,
49 "A49:C58": 3,
50 "E49:G58": 3,
51 "B48:C48": 4,
52 "F48:G48": 4
53 },
54 "formats": {},
55 "borders": {
56 "A47:C47": 1,
57 "A7:G7": 1,
58 "A27:G27": 1,
59 "E47:G47": 1,
60 "A48:C48": 2,
61 "A8:G8": 2,
62 "A28:G28": 2,
63 "E48:G48": 2,
64 "A49:C49": 3,
65 "E49:G49": 3,
66 "A50:C58": 4,
67 "E50:G58": 4,
68 "A59:C59": 5,
69 "E59:G59": 5
70 },
71 "conditionalFormats": [
72 {
73 "rule": { "type": "DataBarRule", "color": 15531509, "rangeValues": "C49:C58" },
74 "id": "3056558c-1b57-47bf-9c5f-6261b292e428",
75 "ranges": ["A49:A58"]
76 },
77 {
78 "rule": { "type": "DataBarRule", "color": 16775149, "rangeValues": "G49:G58" },
79 "id": "136a8cad-572a-41e9-9cbe-e2d5b8d8dfa9",
80 "ranges": ["E49:E58"]
81 }
82 ],
83 "dataValidationRules": [],
84 "figures": [
85 {
86 "id": "e35856cf-9090-489b-b055-2d441380d954",
87 "width": 1000,
88 "height": 436,
89 "tag": "chart",
90 "data": {
91 "title": { "text": "" },
92 "background": "#FFFFFF",
93 "legendPosition": "none",
94 "metaData": {
95 "groupBy": ["product_id"],
96 "measure": "price_subtotal",
97 "order": "DESC",
98 "resModel": "sale.report",
99 "mode": "bar"
100 },
101 "searchParams": {
102 "comparison": null,
103 "context": {
104 "group_by": []
105 },
106 "domain": [
107 [
108 "state",
109 "not in",
110 ["draft", "sent", "cancel"]
111 ]
112 ],
113 "groupBy": ["product_id"],
114 "orderBy": []
115 },
116 "type": "odoo_bar",
117 "dataSets": [
118 {}
119 ],
120 "verticalAxisPosition": "left",
121 "stacked": true,
122 "axesDesign": {
123 "x": {
124 "title": { "text": "Product" }
125 },
126 "y": {
127 "title": { "text": "Revenue" }
128 }
129 },
130 "chartId": "e35856cf-9090-489b-b055-2d441380d954",
131 "fieldMatching": {
132 "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52": { "chain": "date", "type": "datetime", "offset": 0 },
133 "36814ad9-adac-4aba-a5ad-df595a306ef7": { "chain": "product_id", "type": "many2one" },
134 "edaf4d0c-df4b-48bc-b61a-48a07e8afd91": { "chain": "categ_id", "type": "many2one" }
135 }
136 },
137 "offset": { "x": 0, "y": 178 },
138 "col": 0,
139 "row": 0
140 },
141 {
142 "id": "d0171069-d2cd-4c2c-a686-cd7515e93bb5",
143 "width": 1000,
144 "height": 438,
145 "tag": "chart",
146 "data": {
147 "title": { "text": "" },
148 "background": "#FFFFFF",
149 "legendPosition": "none",
150 "metaData": {
151 "groupBy": ["product_id"],
152 "measure": "product_uom_qty",
153 "order": "DESC",
154 "resModel": "sale.report",
155 "mode": "bar"
156 },
157 "searchParams": {
158 "comparison": null,
159 "context": {
160 "group_by": []
161 },
162 "domain": [
163 [
164 "state",
165 "not in",
166 ["draft", "sent", "cancel"]
167 ]
168 ],
169 "groupBy": ["product_id"],
170 "orderBy": []
171 },
172 "type": "odoo_bar",
173 "dataSets": [
174 {}
175 ],
176 "verticalAxisPosition": "left",
177 "stacked": true,
178 "axesDesign": {
179 "x": {
180 "title": { "text": "Product" }
181 },
182 "y": {
183 "title": { "text": "Unit sold" }
184 }
185 },
186 "chartId": "d0171069-d2cd-4c2c-a686-cd7515e93bb5",
187 "fieldMatching": {
188 "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52": { "chain": "date", "type": "datetime", "offset": 0 },
189 "36814ad9-adac-4aba-a5ad-df595a306ef7": { "chain": "product_id", "type": "many2one" },
190 "edaf4d0c-df4b-48bc-b61a-48a07e8afd91": { "chain": "categ_id", "type": "many2one" }
191 }
192 },
193 "offset": { "x": 0, "y": 655 },
194 "col": 0,
195 "row": 0
196 },
197 {
198 "id": "5f383918-4073-4f19-9cc9-603216c953ad",
199 "width": 450,
200 "height": 108,
201 "tag": "chart",
202 "data": {
203 "baselineColorDown": "#DC6965",
204 "baselineColorUp": "#00A04A",
205 "baselineMode": "text",
206 "title": { "text": "Best Seller", "color": "#434343", "bold": true },
207 "type": "scorecard",
208 "background": "#FEF2F2",
209 "baseline": "Data!C2",
210 "baselineDescr": { "text": "sold" },
211 "keyValue": "Data!B2",
212 "humanize": false,
213 "chartId": "5f383918-4073-4f19-9cc9-603216c953ad"
214 },
215 "offset": { "x": 0, "y": 12 },
216 "col": 0,
217 "row": 0
218 },
219 {
220 "id": "ec57f69b-f2b1-4dfc-990c-91ab61b526bf",
221 "width": 450,
222 "height": 108,
223 "tag": "chart",
224 "data": {
225 "baselineColorDown": "#DC6965",
226 "baselineColorUp": "#00A04A",
227 "baselineMode": "text",
228 "title": { "text": "Best Category", "color": "#434343", "bold": true },
229 "type": "scorecard",
230 "background": "#FEF2F2",
231 "baseline": "Data!C3",
232 "baselineDescr": { "text": "sold" },
233 "keyValue": "Data!B3",
234 "humanize": false,
235 "chartId": "ec57f69b-f2b1-4dfc-990c-91ab61b526bf"
236 },
237 "offset": { "x": 459, "y": 12 },
238 "col": 0,
239 "row": 0
240 },
241 {
242 "id": "8ee8675a-7e31",
243 "col": 3,
244 "row": 46,
245 "offset": { "x": 49, "y": 7 },
246 "width": 476,
247 "height": 369,
248 "tag": "carousel",
249 "data": {
250 "chartDefinitions": {
251 "779aed3e-b442": {
252 "title": {},
253 "background": "#FFFFFF",
254 "legendPosition": "top",
255 "metaData": {
256 "groupBy": ["categ_id"],
257 "measure": "price_subtotal",
258 "order": null,
259 "resModel": "sale.report",
260 "mode": "bar"
261 },
262 "searchParams": {
263 "context": {
264 "group_by": []
265 },
266 "domain": "[\"&\", (\"state\", \"!=\", \"cancel\"), (\"state\", \"not in\", (\"draft\", \"cancel\", \"sent\"))]",
267 "groupBy": ["categ_id"],
268 "orderBy": []
269 },
270 "type": "odoo_treemap",
271 "actionXmlId": "sale.action_order_report_all",
272 "dataSets": [
273 {}
274 ]
275 }
276 },
277 "items": [
278 { "type": "chart", "chartId": "779aed3e-b442" },
279 { "type": "carouselDataView", "title": "Top 10" }
280 ],
281 "title": {
282 "text": "Best Selling Categories",
283 "bold": true,
284 "fontSize": 21,
285 "color": "#01666B"
286 },
287 "fieldMatching": {
288 "779aed3e-b442": {
289 "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52": { "chain": "date", "type": "datetime" },
290 "36814ad9-adac-4aba-a5ad-df595a306ef7": { "chain": "product_id", "type": "many2one" },
291 "edaf4d0c-df4b-48bc-b61a-48a07e8afd91": { "chain": "categ_id", "type": "many2one" }
292 }
293 }
294 }
295 }
296 ],
297 "tables": [
298 {
299 "range": "A48:C58",
300 "type": "static",
301 "config": {
302 "hasFilters": false,
303 "totalRow": false,
304 "firstColumn": false,
305 "lastColumn": false,
306 "numberOfHeaders": 1,
307 "bandedRows": true,
308 "bandedColumns": false,
309 "automaticAutofill": true,
310 "styleId": "None"
311 }
312 },
313 {
314 "range": "E48:G58",
315 "type": "static",
316 "config": {
317 "hasFilters": false,
318 "totalRow": false,
319 "firstColumn": false,
320 "lastColumn": false,
321 "numberOfHeaders": 1,
322 "bandedRows": true,
323 "bandedColumns": false,
324 "automaticAutofill": true,
325 "styleId": "None"
326 }
327 }
328 ],
329 "areGridLinesVisible": true,
330 "isVisible": true,
331 "headerGroups": {
332 "ROW": [],
333 "COL": []
334 },
335 "comments": {}
336 },
337 {
338 "id": "a83a78f2-b124-4d6f-9726-125e62a32b8d",
339 "name": "Data",
340 "colNumber": 23,
341 "rowNumber": 88,
342 "rows": {},
343 "cols": {},
344 "merges": [],
345 "cells": {
346 "A1": "=_t(\"KPI\")",
347 "A2": "=_t(\"Best selling product\")",
348 "A3": "=_t(\"Best selling category\")",
349 "B1": "=_t(\"Name\")",
350 "B2": "=PIVOT.HEADER(1,\"#product_id\",1)",
351 "B3": "=PIVOT.HEADER(2,\"#categ_id\",1)",
352 "C1": "=_t(\"Units\")",
353 "C2": "=PIVOT.VALUE(1,\"product_uom_qty\",\"#product_id\",1)",
354 "C3": "=PIVOT.VALUE(2,\"product_uom_qty\",\"#categ_id\",1)",
355 "D1": "=_t(\"Revenue\")",
356 "D2": "=FORMAT.LARGE.NUMBER(PIVOT.VALUE(1,\"price_subtotal\",\"#product_id\",1))",
357 "D3": "=FORMAT.LARGE.NUMBER(PIVOT.VALUE(2,\"price_subtotal\",\"#categ_id\",1))"
358 },
359 "styles": { "A1:D3": 5 },
360 "formats": {},
361 "borders": {},
362 "conditionalFormats": [],
363 "dataValidationRules": [],
364 "figures": [],
365 "tables": [],
366 "areGridLinesVisible": true,
367 "isVisible": true,
368 "headerGroups": {
369 "ROW": [],
370 "COL": []
371 },
372 "comments": {}
373 }
374 ],
375 "styles": {
376 "1": { "textColor": "#01666b", "bold": true, "fontSize": 16 },
377 "2": { "textColor": "#434343", "fontSize": 11, "bold": true },
378 "3": { "textColor": "#434343", "verticalAlign": "middle" },
379 "4": {
380 "textColor": "#434343",
381 "fontSize": 11,
382 "bold": true,
383 "align": "center"
384 },
385 "5": { "fillColor": "#f2f2f2" }
386 },
387 "formats": {},
388 "borders": {
389 "1": {
390 "bottom": { "style": "thin", "color": "#CCCCCC" }
391 },
392 "2": {
393 "top": { "style": "thin", "color": "#CCCCCC" }
394 },
395 "3": {
396 "bottom": { "style": "thin", "color": "#FFFFFF" }
397 },
398 "4": {
399 "top": { "style": "thin", "color": "#FFFFFF" },
400 "bottom": { "style": "thin", "color": "#FFFFFF" }
401 },
402 "5": {
403 "top": { "style": "thin", "color": "#FFFFFF" }
404 }
405 },
406 "revisionId": "START_REVISION",
407 "uniqueFigureIds": true,
408 "settings": {
409 "locale": {
410 "name": "English (US)",
411 "code": "en_US",
412 "thousandsSeparator": ",",
413 "decimalSeparator": ".",
414 "dateFormat": "mm/dd/yyyy",
415 "timeFormat": "hh:mm:ss",
416 "formulaArgSeparator": ",",
417 "weekStart": 7
418 }
419 },
420 "pivots": {
421 "1": {
422 "type": "ODOO",
423 "fieldMatching": {
424 "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52": { "chain": "date", "type": "datetime", "offset": 0 },
425 "36814ad9-adac-4aba-a5ad-df595a306ef7": { "chain": "product_id", "type": "many2one" },
426 "edaf4d0c-df4b-48bc-b61a-48a07e8afd91": { "chain": "categ_id", "type": "many2one" }
427 },
428 "context": {
429 "group_by": []
430 },
431 "domain": [
432 [
433 "state",
434 "not in",
435 ["draft", "sent", "cancel"]
436 ]
437 ],
438 "id": "1",
439 "measures": [
440 {
441 "id": "product_uom_qty",
442 "fieldName": "product_uom_qty",
443 "userDefinedName": "Units"
444 },
445 {
446 "id": "price_subtotal",
447 "fieldName": "price_subtotal",
448 "userDefinedName": "Revenue"
449 }
450 ],
451 "model": "sale.report",
452 "name": "Product",
453 "sortedColumn": {
454 "measure": "price_subtotal",
455 "order": "desc",
456 "domain": []
457 },
458 "formulaId": "1",
459 "columns": [],
460 "rows": [
461 { "fieldName": "product_id" }
462 ]
463 },
464 "2": {
465 "type": "ODOO",
466 "fieldMatching": {
467 "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52": { "chain": "date", "type": "datetime", "offset": 0 },
468 "36814ad9-adac-4aba-a5ad-df595a306ef7": { "chain": "product_id", "type": "many2one" },
469 "edaf4d0c-df4b-48bc-b61a-48a07e8afd91": { "chain": "categ_id", "type": "many2one" }
470 },
471 "context": {
472 "group_by": []
473 },
474 "domain": [
475 [
476 "state",
477 "not in",
478 ["draft", "sent", "cancel"]
479 ]
480 ],
481 "id": "2",
482 "measures": [
483 {
484 "id": "product_uom_qty",
485 "fieldName": "product_uom_qty",
486 "userDefinedName": "Units"
487 },
488 {
489 "id": "price_subtotal",
490 "fieldName": "price_subtotal",
491 "userDefinedName": "Revenue"
492 }
493 ],
494 "model": "sale.report",
495 "name": "Category",
496 "sortedColumn": {
497 "measure": "price_subtotal",
498 "order": "desc",
499 "domain": []
500 },
501 "formulaId": "2",
502 "columns": [],
503 "rows": [
504 { "fieldName": "categ_id" }
505 ]
506 }
507 },
508 "pivotNextId": 3,
509 "customTableStyles": {},
510 "globalFilters": [
511 {
512 "id": "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52",
513 "type": "date",
514 "label": "Period",
515 "defaultValue": "last_30_days"
516 },
517 {
518 "id": "36814ad9-adac-4aba-a5ad-df595a306ef7",
519 "type": "relation",
520 "label": "Product",
521 "modelName": "product.product",
522 "defaultValueDisplayNames": []
523 },
524 {
525 "id": "edaf4d0c-df4b-48bc-b61a-48a07e8afd91",
526 "type": "relation",
527 "label": "Category",
528 "modelName": "product.category",
529 "defaultValueDisplayNames": []
530 }
531 ],
532 "lists": {},
533 "listNextId": 1,
534 "chartOdooMenusReferences": {
535 "c30175e7-604c-4fc7-8adb-03be67f0dc8f": "sale.sale_menu_root",
536 "30212d4a-1f77-4cb8-8590-4eb34876e260": "sale.sale_menu_root",
537 "e35856cf-9090-489b-b055-2d441380d954": "sale.sale_menu_root",
538 "d0171069-d2cd-4c2c-a686-cd7515e93bb5": "sale.sale_menu_root",
539 "5f383918-4073-4f19-9cc9-603216c953ad": "sale.menu_reporting_sales",
540 "ec57f69b-f2b1-4dfc-990c-91ab61b526bf": "sale.menu_reporting_sales"
541 }
542 }