367 lines
8.1 KiB
JSON
367 lines
8.1 KiB
JSON
{
|
|
"version": 12,
|
|
"sheets": [
|
|
{
|
|
"id": "dashboard",
|
|
"name": "Overview",
|
|
"colNumber": 26,
|
|
"rowNumber": 50,
|
|
"rows": {
|
|
"0": {
|
|
"size": 40
|
|
}
|
|
},
|
|
"cols": {},
|
|
"merges": [],
|
|
"cells": {
|
|
"A1": {
|
|
"style": 1,
|
|
"content": "=_t(\"Cooperative POS — Overview\")"
|
|
},
|
|
"A3": {
|
|
"style": 2,
|
|
"content": "=_t(\"Monthly evolution\")"
|
|
}
|
|
},
|
|
"conditionalFormats": [],
|
|
"figures": [
|
|
{
|
|
"id": "kpi-sales",
|
|
"x": 0,
|
|
"y": 60,
|
|
"width": 200,
|
|
"height": 120,
|
|
"tag": "chart",
|
|
"data": {
|
|
"type": "scorecard",
|
|
"title": "Sales (€)",
|
|
"keyValue": "Data!D1",
|
|
"baseline": "Data!E1",
|
|
"baselineDescr": "since last period",
|
|
"baselineMode": "percentage",
|
|
"baselineColorUp": "#00A04A",
|
|
"baselineColorDown": "#DC6965"
|
|
}
|
|
},
|
|
{
|
|
"id": "kpi-orders",
|
|
"x": 220,
|
|
"y": 60,
|
|
"width": 200,
|
|
"height": 120,
|
|
"tag": "chart",
|
|
"data": {
|
|
"type": "scorecard",
|
|
"title": "Orders",
|
|
"keyValue": "Data!D2",
|
|
"baseline": "Data!E2",
|
|
"baselineDescr": "since last period",
|
|
"baselineMode": "percentage",
|
|
"baselineColorUp": "#00A04A",
|
|
"baselineColorDown": "#DC6965"
|
|
}
|
|
},
|
|
{
|
|
"id": "kpi-ticket",
|
|
"x": 440,
|
|
"y": 60,
|
|
"width": 200,
|
|
"height": 120,
|
|
"tag": "chart",
|
|
"data": {
|
|
"type": "scorecard",
|
|
"title": "Average ticket (€)",
|
|
"keyValue": "Data!D3",
|
|
"baseline": "Data!E3",
|
|
"baselineDescr": "since last period",
|
|
"baselineMode": "percentage",
|
|
"baselineColorUp": "#00A04A",
|
|
"baselineColorDown": "#DC6965"
|
|
}
|
|
},
|
|
{
|
|
"id": "kpi-margin",
|
|
"x": 660,
|
|
"y": 60,
|
|
"width": 200,
|
|
"height": 120,
|
|
"tag": "chart",
|
|
"data": {
|
|
"type": "scorecard",
|
|
"title": "Gross margin (€)",
|
|
"keyValue": "Data!D4",
|
|
"baseline": "Data!E4",
|
|
"baselineDescr": "since last period",
|
|
"baselineMode": "percentage",
|
|
"baselineColorUp": "#00A04A",
|
|
"baselineColorDown": "#DC6965"
|
|
}
|
|
},
|
|
{
|
|
"id": "chart-monthly-sales",
|
|
"x": 0,
|
|
"y": 220,
|
|
"width": 1000,
|
|
"height": 300,
|
|
"tag": "chart",
|
|
"data": {
|
|
"title": "Monthly sales (€)",
|
|
"background": "#FFFFFF",
|
|
"legendPosition": "none",
|
|
"metaData": {
|
|
"groupBy": [
|
|
"date:month"
|
|
],
|
|
"measure": "price_total",
|
|
"order": null,
|
|
"resModel": "report.pos.order"
|
|
},
|
|
"searchParams": {
|
|
"comparison": null,
|
|
"context": {
|
|
"group_by": [
|
|
"date:month"
|
|
],
|
|
"group_by_no_leaf": 1
|
|
},
|
|
"domain": [
|
|
[
|
|
"state",
|
|
"in",
|
|
[
|
|
"paid",
|
|
"done",
|
|
"invoiced"
|
|
]
|
|
]
|
|
],
|
|
"groupBy": [
|
|
"date:month"
|
|
],
|
|
"orderBy": []
|
|
},
|
|
"type": "odoo_line",
|
|
"verticalAxisPosition": "left"
|
|
}
|
|
}
|
|
],
|
|
"areGridLinesVisible": false,
|
|
"isVisible": true
|
|
},
|
|
{
|
|
"id": "data",
|
|
"name": "Data",
|
|
"colNumber": 5,
|
|
"rowNumber": 10,
|
|
"rows": {},
|
|
"cols": {
|
|
"0": {
|
|
"size": 200
|
|
},
|
|
"1": {
|
|
"size": 140
|
|
},
|
|
"2": {
|
|
"size": 140
|
|
},
|
|
"3": {
|
|
"size": 140
|
|
},
|
|
"4": {
|
|
"size": 140
|
|
}
|
|
},
|
|
"merges": [],
|
|
"cells": {
|
|
"A1": {
|
|
"content": "=_t(\"KPI - Sales\")"
|
|
},
|
|
"A2": {
|
|
"content": "=_t(\"KPI - Orders\")"
|
|
},
|
|
"A3": {
|
|
"content": "=_t(\"KPI - Average ticket\")"
|
|
},
|
|
"A4": {
|
|
"content": "=_t(\"KPI - Margin\")"
|
|
},
|
|
"B1": {
|
|
"content": "=ODOO.PIVOT(1,\"price_total\")"
|
|
},
|
|
"B2": {
|
|
"content": "=ODOO.PIVOT(1,\"order_id\")"
|
|
},
|
|
"B3": {
|
|
"content": "=IFERROR(B1/B2,0)"
|
|
},
|
|
"B4": {
|
|
"content": "=ODOO.PIVOT(1,\"margin\")"
|
|
},
|
|
"C1": {
|
|
"content": "=ODOO.PIVOT(2,\"price_total\")"
|
|
},
|
|
"C2": {
|
|
"content": "=ODOO.PIVOT(2,\"order_id\")"
|
|
},
|
|
"C3": {
|
|
"content": "=IFERROR(C1/C2,0)"
|
|
},
|
|
"C4": {
|
|
"content": "=ODOO.PIVOT(2,\"margin\")"
|
|
},
|
|
"D1": {
|
|
"content": "=FORMAT.LARGE.NUMBER(B1)"
|
|
},
|
|
"D2": {
|
|
"content": "=FORMAT.LARGE.NUMBER(B2)"
|
|
},
|
|
"D3": {
|
|
"content": "=FORMAT.LARGE.NUMBER(B3)"
|
|
},
|
|
"D4": {
|
|
"content": "=FORMAT.LARGE.NUMBER(B4)"
|
|
},
|
|
"E1": {
|
|
"content": "=FORMAT.LARGE.NUMBER(C1)"
|
|
},
|
|
"E2": {
|
|
"content": "=FORMAT.LARGE.NUMBER(C2)"
|
|
},
|
|
"E3": {
|
|
"content": "=FORMAT.LARGE.NUMBER(C3)"
|
|
},
|
|
"E4": {
|
|
"content": "=FORMAT.LARGE.NUMBER(C4)"
|
|
}
|
|
},
|
|
"conditionalFormats": [],
|
|
"figures": [],
|
|
"areGridLinesVisible": true,
|
|
"isVisible": false
|
|
}
|
|
],
|
|
"entities": {},
|
|
"styles": {
|
|
"1": {
|
|
"bold": true,
|
|
"fontSize": 22,
|
|
"textColor": "#2E7D32"
|
|
},
|
|
"2": {
|
|
"bold": true,
|
|
"fontSize": 14,
|
|
"textColor": "#333333"
|
|
}
|
|
},
|
|
"formats": {
|
|
"1": "#,##0.00 [$€]",
|
|
"2": "#,##0"
|
|
},
|
|
"borders": {},
|
|
"revisionId": "START_REVISION",
|
|
"chartOdooMenusReferences": {},
|
|
"odooVersion": 1,
|
|
"lists": {},
|
|
"listNextId": 1,
|
|
"pivots": {
|
|
"1": {
|
|
"colGroupBys": [],
|
|
"context": {
|
|
"group_by_no_leaf": 1,
|
|
"group_by": []
|
|
},
|
|
"domain": [
|
|
[
|
|
"state",
|
|
"in",
|
|
[
|
|
"paid",
|
|
"done",
|
|
"invoiced"
|
|
]
|
|
]
|
|
],
|
|
"id": "1",
|
|
"measures": [
|
|
{
|
|
"field": "price_total"
|
|
},
|
|
{
|
|
"field": "margin"
|
|
},
|
|
{
|
|
"field": "order_id"
|
|
}
|
|
],
|
|
"model": "report.pos.order",
|
|
"rowGroupBys": [],
|
|
"name": "POS KPIs - current",
|
|
"sortedColumn": null
|
|
},
|
|
"2": {
|
|
"colGroupBys": [],
|
|
"context": {
|
|
"group_by_no_leaf": 1,
|
|
"group_by": []
|
|
},
|
|
"domain": [
|
|
[
|
|
"state",
|
|
"in",
|
|
[
|
|
"paid",
|
|
"done",
|
|
"invoiced"
|
|
]
|
|
]
|
|
],
|
|
"id": "2",
|
|
"measures": [
|
|
{
|
|
"field": "price_total"
|
|
},
|
|
{
|
|
"field": "margin"
|
|
},
|
|
{
|
|
"field": "order_id"
|
|
}
|
|
],
|
|
"model": "report.pos.order",
|
|
"rowGroupBys": [],
|
|
"name": "POS KPIs - previous",
|
|
"sortedColumn": null
|
|
}
|
|
},
|
|
"pivotNextId": 3,
|
|
"globalFilters": [
|
|
{
|
|
"id": "11111111-1111-1111-1111-111111111111",
|
|
"type": "date",
|
|
"label": "Period",
|
|
"defaultValue": {},
|
|
"rangeType": "month",
|
|
"defaultsToCurrentPeriod": true,
|
|
"pivotFields": {
|
|
"1": {
|
|
"field": "date",
|
|
"type": "datetime",
|
|
"offset": 0
|
|
},
|
|
"2": {
|
|
"field": "date",
|
|
"type": "datetime",
|
|
"offset": -1
|
|
}
|
|
},
|
|
"listFields": {},
|
|
"graphFields": {
|
|
"chart-monthly-sales": {
|
|
"field": "date",
|
|
"type": "datetime",
|
|
"offset": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|