addons-cm/spreadsheet_dashboard_pos_cooperative/data/files/time_dashboard.json

221 lines
5.2 KiB
JSON

{
"version": 12,
"sheets": [
{
"id": "dashboard",
"name": "Sales by time",
"colNumber": 26,
"rowNumber": 50,
"rows": {
"0": {
"size": 40
}
},
"cols": {},
"merges": [],
"cells": {
"A1": {
"style": 1,
"content": "=_t(\"Cooperative POS — Sales by hours and days\")"
},
"A3": {
"style": 2,
"content": "=_t(\"Sales by day of the week\")"
},
"A20": {
"style": 2,
"content": "=_t(\"Sales by hour of the day\")"
}
},
"conditionalFormats": [],
"figures": [
{
"id": "chart-by-day",
"x": 0,
"y": 60,
"width": 1000,
"height": 280,
"tag": "chart",
"data": {
"title": "Sales by day of week",
"background": "#FFFFFF",
"legendPosition": "none",
"metaData": {
"groupBy": [
"day_of_week"
],
"measure": "price_total",
"order": null,
"resModel": "report.pos.order"
},
"searchParams": {
"comparison": null,
"context": {
"group_by": [
"day_of_week"
],
"group_by_no_leaf": 1
},
"domain": [
[
"state",
"in",
[
"paid",
"done",
"invoiced"
]
]
],
"groupBy": [
"day_of_week"
],
"orderBy": []
},
"type": "odoo_line",
"verticalAxisPosition": "left"
}
},
{
"id": "chart-by-hour",
"x": 0,
"y": 380,
"width": 1000,
"height": 280,
"tag": "chart",
"data": {
"title": "Sales by hour of day",
"background": "#FFFFFF",
"legendPosition": "none",
"metaData": {
"groupBy": [
"hour_of_day"
],
"measure": "price_total",
"order": null,
"resModel": "report.pos.order"
},
"searchParams": {
"comparison": null,
"context": {
"group_by": [
"hour_of_day"
],
"group_by_no_leaf": 1
},
"domain": [
[
"state",
"in",
[
"paid",
"done",
"invoiced"
]
]
],
"groupBy": [
"hour_of_day"
],
"orderBy": []
},
"type": "odoo_line",
"verticalAxisPosition": "left"
}
}
],
"areGridLinesVisible": false,
"isVisible": true
}
],
"entities": {},
"styles": {
"1": {
"bold": true,
"fontSize": 22,
"textColor": "#2E7D32"
},
"2": {
"bold": true,
"fontSize": 14,
"textColor": "#333333"
}
},
"formats": {},
"borders": {},
"revisionId": "START_REVISION",
"chartOdooMenusReferences": {},
"odooVersion": 1,
"lists": {},
"listNextId": 1,
"pivots": {},
"pivotNextId": 1,
"globalFilters": [
{
"id": "11111111-1111-1111-1111-111111111111",
"type": "date",
"label": "Period",
"defaultValue": {},
"rangeType": "month",
"defaultsToCurrentPeriod": true,
"pivotFields": {},
"listFields": {},
"graphFields": {
"chart-by-day": {
"field": "date",
"type": "datetime",
"offset": 0
},
"chart-by-hour": {
"field": "date",
"type": "datetime",
"offset": 0
}
}
},
{
"id": "22222222-2222-2222-2222-222222222222",
"type": "relation",
"label": "Product Category",
"modelName": "product.category",
"defaultValue": [],
"defaultValueDisplayNames": [],
"rangeType": "year",
"defaultsToCurrentPeriod": false,
"pivotFields": {},
"listFields": {},
"graphFields": {
"chart-by-day": {
"field": "product_categ_id",
"type": "many2one"
},
"chart-by-hour": {
"field": "product_categ_id",
"type": "many2one"
}
}
},
{
"id": "33333333-3333-3333-3333-333333333333",
"type": "relation",
"label": "Product",
"modelName": "product.product",
"defaultValue": [],
"defaultValueDisplayNames": [],
"rangeType": "year",
"defaultsToCurrentPeriod": false,
"pivotFields": {},
"listFields": {},
"graphFields": {
"chart-by-day": {
"field": "product_id",
"type": "many2one"
},
"chart-by-hour": {
"field": "product_id",
"type": "many2one"
}
}
}
]
}