diff --git a/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json b/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json index aacff1ca92a..0dae63437e9 100644 --- a/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json +++ b/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json @@ -840,6 +840,7 @@ }, "F21": { "style": 14, + "format": 1, "content": "=ODOO.LIST(1,1,\"invoice_date\")" }, "F22": { @@ -2105,13 +2106,12 @@ } }, "listFields": { - "1": {} + "1": { + "field": "invoice_line_ids", + "type": "one2many" + } }, "graphFields": { - "0833ccd2-8b33-4840-a4b6-0dcad53fc86e": { - "field": "product_categ_id", - "type": "many2one" - }, "5ea5dd7f-9f83-4482-a2bb-2ec72ab35912": { "field": "product_categ_id", "type": "many2one" @@ -2158,13 +2158,12 @@ } }, "listFields": { - "1": {} + "1": { + "field": "invoice_line_ids", + "type": "one2many" + } }, "graphFields": { - "0833ccd2-8b33-4840-a4b6-0dcad53fc86e": { - "field": "product_id", - "type": "many2one" - }, "5ea5dd7f-9f83-4482-a2bb-2ec72ab35912": { "field": "product_id", "type": "many2one" @@ -2212,15 +2211,11 @@ }, "listFields": { "1": { - "field": "activity_user_id", + "field": "invoice_user_id", "type": "many2one" } }, "graphFields": { - "0833ccd2-8b33-4840-a4b6-0dcad53fc86e": { - "field": "invoice_user_id", - "type": "many2one" - }, "5ea5dd7f-9f83-4482-a2bb-2ec72ab35912": { "field": "invoice_user_id", "type": "many2one" diff --git a/addons/spreadsheet_dashboard_event_sale/data/files/events_dashboard.json b/addons/spreadsheet_dashboard_event_sale/data/files/events_dashboard.json index ffe28e6feef..4812e78cc2a 100644 --- a/addons/spreadsheet_dashboard_event_sale/data/files/events_dashboard.json +++ b/addons/spreadsheet_dashboard_event_sale/data/files/events_dashboard.json @@ -50,7 +50,7 @@ "cells": { "A7": { "style": 1, - "content": "[Events status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"stage_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"stage_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})", + "content": "[Events Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"stage_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"stage_id\"]},\"modelName\":\"event.event\",\"views\":[[false,\"kanban\"],[false,\"calendar\"],[false,\"list\"],[false,\"gantt\"],[false,\"form\"],[false,\"pivot\"],[false,\"graph\"],[false,\"map\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Events\"})", "border": 1 }, "A19": { @@ -300,7 +300,7 @@ }, "E7": { "style": 1, - "content": "[Registration status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"state\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"state\"]},\"modelName\":\"event.registration\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"kanban\"],[false,\"list\"],[false,\"form\"],[false,\"cohort\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Attendees\"})", + "content": "[Registration Status](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"state\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"state\"]},\"modelName\":\"event.registration\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"kanban\"],[false,\"list\"],[false,\"form\"],[false,\"cohort\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Attendees\"})", "border": 1 }, "E19": { @@ -982,10 +982,7 @@ [] ], "measure": "__count", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "2": { @@ -1015,10 +1012,7 @@ [] ], "measure": "__count", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "3": { @@ -1048,10 +1042,7 @@ [] ], "measure": "__count", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "4": { @@ -1081,10 +1072,7 @@ [] ], "measure": "__count", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "5": { diff --git a/addons/spreadsheet_dashboard_hr_expense/data/files/expense_dashboard.json b/addons/spreadsheet_dashboard_hr_expense/data/files/expense_dashboard.json index 1713eae57cb..0be9b486afb 100644 --- a/addons/spreadsheet_dashboard_hr_expense/data/files/expense_dashboard.json +++ b/addons/spreadsheet_dashboard_hr_expense/data/files/expense_dashboard.json @@ -240,37 +240,47 @@ }, "C21": { "style": 7, + "format": 1, "content": "=ODOO.LIST(1,1,\"total_amount\")" }, "C22": { + "format": 1, "content": "=ODOO.LIST(1,2,\"total_amount\")" }, "C23": { "style": 7, + "format": 1, "content": "=ODOO.LIST(1,3,\"total_amount\")" }, "C24": { + "format": 1, "content": "=ODOO.LIST(1,4,\"total_amount\")" }, "C25": { "style": 7, + "format": 1, "content": "=ODOO.LIST(1,5,\"total_amount\")" }, "C26": { + "format": 1, "content": "=ODOO.LIST(1,6,\"total_amount\")" }, "C27": { "style": 7, + "format": 1, "content": "=ODOO.LIST(1,7,\"total_amount\")" }, "C28": { + "format": 1, "content": "=ODOO.LIST(1,8,\"total_amount\")" }, "C29": { "style": 7, + "format": 1, "content": "=ODOO.LIST(1,9,\"total_amount\")" }, "C30": { + "format": 1, "content": "=ODOO.LIST(1,10,\"total_amount\")" }, "C33": { @@ -896,7 +906,7 @@ } }, "formats": { - "1": "#,##0.00[$€]" + "1": "#,##0[$€]" }, "borders": { "1": { @@ -912,6 +922,7 @@ ] } }, + "revisionId": "START_REVISION", "chartOdooMenusReferences": { "6ce637db-4068-457f-91a4-ce83736932ff": "hr_expense.menu_hr_expense_root" }, @@ -941,7 +952,14 @@ "product_id" ], "name": "Top Categories", - "sortedColumn": null + "sortedColumn": { + "groupId": [ + [], + [] + ], + "measure": "total_amount", + "order": "desc" + } }, "3": { "colGroupBys": [], diff --git a/addons/spreadsheet_dashboard_pos_hr/data/files/pos_dashboard.json b/addons/spreadsheet_dashboard_pos_hr/data/files/pos_dashboard.json index 9d46ded7e80..8870f5d7234 100644 --- a/addons/spreadsheet_dashboard_pos_hr/data/files/pos_dashboard.json +++ b/addons/spreadsheet_dashboard_pos_hr/data/files/pos_dashboard.json @@ -348,44 +348,35 @@ "content": "=ODOO.LIST(1,1,\"config_id\")" }, "C22": { - "format": 1, - "content": "=ODOO.LIST(1,2,\"pos_reference\")" + "content": "=ODOO.LIST(1,2,\"config_id\")" }, "C23": { "style": 7, - "format": 1, - "content": "=ODOO.LIST(1,3,\"pos_reference\")" + "content": "=ODOO.LIST(1,3,\"config_id\")" }, "C24": { - "format": 1, - "content": "=ODOO.LIST(1,4,\"pos_reference\")" + "content": "=ODOO.LIST(1,4,\"config_id\")" }, "C25": { "style": 7, - "format": 1, - "content": "=ODOO.LIST(1,5,\"pos_reference\")" + "content": "=ODOO.LIST(1,5,\"config_id\")" }, "C26": { - "format": 1, - "content": "=ODOO.LIST(1,6,\"pos_reference\")" + "content": "=ODOO.LIST(1,6,\"config_id\")" }, "C27": { "style": 7, - "format": 1, - "content": "=ODOO.LIST(1,7,\"pos_reference\")" + "content": "=ODOO.LIST(1,7,\"config_id\")" }, "C28": { - "format": 1, - "content": "=ODOO.LIST(1,8,\"pos_reference\")" + "content": "=ODOO.LIST(1,8,\"config_id\")" }, "C29": { "style": 7, - "format": 1, - "content": "=ODOO.LIST(1,9,\"pos_reference\")" + "content": "=ODOO.LIST(1,9,\"config_id\")" }, "C30": { - "format": 1, - "content": "=ODOO.LIST(1,10,\"pos_reference\")" + "content": "=ODOO.LIST(1,10,\"config_id\")" }, "C32": { "style": 8, @@ -1321,10 +1312,7 @@ [] ], "measure": "price_total", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "2": { @@ -1354,10 +1342,7 @@ [] ], "measure": "price_total", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "3": { @@ -1393,10 +1378,7 @@ [] ], "measure": "price_total", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "4": { @@ -1432,10 +1414,7 @@ [] ], "measure": "price_total", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "5": { diff --git a/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json b/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json index 3e41e028d24..bb511a7a6a6 100644 --- a/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json +++ b/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json @@ -1,859 +1,846 @@ { - "version": 12, - "sheets": [ - { - "id": "sheet1", - "name": "Dashboard", - "colNumber": 7, - "rowNumber": 53, - "rows": { - "6": { - "size": 40 - }, - "23": { - "size": 40 - }, - "40": { - "size": 40 - }, - "41": { - "size": 40 - } - }, - "cols": { - "0": { - "size": 275 - }, - "1": { - "size": 100 - }, - "2": { - "size": 100 - }, - "3": { - "size": 50 - }, - "4": { - "size": 275 - }, - "5": { - "size": 100 - }, - "6": { - "size": 100 - } - }, - "merges": [], - "cells": { - "A7": { - "style": 1, - "content": "[Best Sellers by Revenue](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"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,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Best Sellers by Revenue\"})", - "border": 1 - }, - "A24": { - "style": 1, - "content": "[Best Sellers by Units Sold](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"product_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"product_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", - "border": 1 - }, - "A41": { - "style": 1, - "content": "[Best Selling Products](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"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,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", - "border": 1 - }, - "A42": { - "style": 2, - "content": "Product", - "border": 2 - }, - "A43": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",1)" - }, - "A44": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",2)" - }, - "A45": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",3)" - }, - "A46": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",4)" - }, - "A47": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",5)" - }, - "A48": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",6)" - }, - "A49": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",7)" - }, - "A50": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",8)" - }, - "A51": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",9)" - }, - "A52": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",10)" - }, - "B42": { - "style": 5, - "content": "Units", - "border": 2 - }, - "B43": { - "style": 6, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",1)" - }, - "B44": { - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",2)" - }, - "B45": { - "style": 6, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",3)" - }, - "B46": { - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",4)" - }, - "B47": { - "style": 6, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",5)" - }, - "B48": { - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",6)" - }, - "B49": { - "style": 6, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",7)" - }, - "B50": { - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",8)" - }, - "B51": { - "style": 6, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",9)" - }, - "B52": { - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",10)" - }, - "C42": { - "style": 5, - "content": "Revenue", - "border": 2 - }, - "C43": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",1)" - }, - "C44": { - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",2)" - }, - "C45": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",3)" - }, - "C46": { - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",4)" - }, - "C47": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",5)" - }, - "C48": { - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",6)" - }, - "C49": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",7)" - }, - "C50": { - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",8)" - }, - "C51": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",9)" - }, - "C52": { - "format": 1, - "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",10)" - }, - "E7": { - "style": 7, - "border": 1 - }, - "E41": { - "style": 1, - "content": "[Best Selling Categories](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"categ_id\"],\"pivot_measures\":[\"__count\",\"price_subtotal\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"categ_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", - "border": 1 - }, - "E42": { - "style": 2, - "content": "Category", - "border": 2 - }, - "E43": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",1)" - }, - "E44": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",2)" - }, - "E45": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",3)" - }, - "E46": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",4)" - }, - "E47": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",5)" - }, - "E48": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",6)" - }, - "E49": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",7)" - }, - "E50": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",8)" - }, - "E51": { - "style": 3, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",9)" - }, - "E52": { - "style": 4, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",10)" - }, - "F42": { - "style": 5, - "content": "Units", - "border": 2 - }, - "F43": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",1)" - }, - "F44": { - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",2)" - }, - "F45": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",3)" - }, - "F46": { - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",4)" - }, - "F47": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",5)" - }, - "F48": { - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",6)" - }, - "F49": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",7)" - }, - "F50": { - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",8)" - }, - "F51": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",9)" - }, - "F52": { - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",10)" - }, - "G42": { - "style": 5, - "content": "Revenue", - "border": 2 - }, - "G43": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",1)" - }, - "G44": { - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",2)" - }, - "G45": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",3)" - }, - "G46": { - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",4)" - }, - "G47": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",5)" - }, - "G48": { - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",6)" - }, - "G49": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",7)" - }, - "G50": { - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",8)" - }, - "G51": { - "style": 6, - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",9)" - }, - "G52": { - "format": 1, - "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",10)" - }, - "A8": { - "border": 2 - }, - "A25": { - "border": 2 - }, - "B7": { - "border": 1 - }, - "B8": { - "border": 2 - }, - "B24": { - "border": 1 - }, - "B25": { - "border": 2 - }, - "B41": { - "border": 1 - }, - "C7": { - "border": 1 - }, - "C8": { - "border": 2 - }, - "C24": { - "border": 1 - }, - "C25": { - "border": 2 - }, - "C41": { - "border": 1 - }, - "D7": { - "border": 1 - }, - "D8": { - "border": 2 - }, - "D24": { - "border": 1 - }, - "D25": { - "border": 2 - }, - "E8": { - "border": 2 - }, - "E24": { - "border": 1 - }, - "E25": { - "border": 2 - }, - "F7": { - "border": 1 - }, - "F8": { - "border": 2 - }, - "F24": { - "border": 1 - }, - "F25": { - "border": 2 - }, - "F41": { - "border": 1 - }, - "G7": { - "border": 1 - }, - "G8": { - "border": 2 - }, - "G24": { - "border": 1 - }, - "G25": { - "border": 2 - }, - "G41": { - "border": 1 - } - }, - "conditionalFormats": [], - "figures": [ - { - "id": "e35856cf-9090-489b-b055-2d441380d954", - "x": 0, - "y": 178, - "width": 768, - "height": 345, - "tag": "chart", - "data": { - "title": "", - "id": "e35856cf-9090-489b-b055-2d441380d954", - "background": "#FFFFFF", - "legendPosition": "none", - "metaData": { - "groupBy": [ - "product_id" - ], - "measure": "price_subtotal", - "order": "DESC", - "resModel": "sale.report" - }, - "searchParams": { - "comparison": null, - "context": { - "group_by_no_leaf": 1, - "group_by": [] - }, - "domain": [], - "groupBy": [ - "product_id" - ], - "orderBy": [] - }, - "type": "odoo_bar", - "verticalAxisPosition": "left", - "stacked": true - } - }, - { - "id": "d0171069-d2cd-4c2c-a686-cd7515e93bb5", - "x": 0, - "y": 586, - "width": 768, - "height": 345, - "tag": "chart", - "data": { - "title": "", - "id": "d0171069-d2cd-4c2c-a686-cd7515e93bb5", - "background": "#FFFFFF", - "legendPosition": "none", - "metaData": { - "groupBy": [ - "product_id" - ], - "measure": "__count", - "order": "DESC", - "resModel": "sale.report" - }, - "searchParams": { - "comparison": null, - "context": { - "group_by_no_leaf": 1, - "group_by": [] - }, - "domain": [], - "groupBy": [ - "product_id" - ], - "orderBy": [] - }, - "type": "odoo_bar", - "verticalAxisPosition": "left", - "stacked": true - } - }, - { - "id": "5f383918-4073-4f19-9cc9-603216c953ad", - "x": 0, - "y": 0, - "width": 450, - "height": 120, - "tag": "chart", - "data": { - "baselineColorDown": "#DC6965", - "baselineColorUp": "#00A04A", - "baselineMode": "text", - "title": "Best Seller", - "type": "scorecard", - "background": "", - "baseline": "Data!C2", - "baselineDescr": "units sold", - "keyValue": "Data!B2" - } - }, - { - "id": "ec57f69b-f2b1-4dfc-990c-91ab61b526bf", - "x": 500, - "y": 0, - "width": 450, - "height": 120, - "tag": "chart", - "data": { - "baselineColorDown": "#DC6965", - "baselineColorUp": "#00A04A", - "baselineMode": "text", - "title": "Best Category", - "type": "scorecard", - "background": "", - "baseline": "Data!D3", - "baselineDescr": "sold", - "keyValue": "Data!B3" - } - } - ], - "areGridLinesVisible": true, - "isVisible": true - }, - { - "id": "a83a78f2-b124-4d6f-9726-125e62a32b8d", - "name": "Data", - "colNumber": 23, - "rowNumber": 88, - "rows": {}, - "cols": { - "0": { - "size": 128.26904296875 - }, - "1": { - "size": 244.82470703125 - } - }, - "merges": [], - "cells": { - "A1": { - "style": 6, - "content": "KPI" - }, - "A2": { - "style": 6, - "content": "Best selling product" - }, - "A3": { - "style": 6, - "content": "Best selling category" - }, - "B1": { - "style": 6, - "content": "Name" - }, - "B2": { - "style": 8, - "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",1)" - }, - "B3": { - "style": 8, - "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",1)" - }, - "C1": { - "style": 6, - "content": "Units" - }, - "C2": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",1)" - }, - "C3": { - "style": 6, - "format": 2, - "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",1)" - }, - "D1": { - "style": 6, - "content": "Revenue" - }, - "D2": { - "style": 6, - "format": 2, - "content": "=FORMAT.LARGE.NUMBER(ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",1))" - }, - "D3": { - "style": 6, - "format": 2, - "content": "=FORMAT.LARGE.NUMBER(ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",1))" - } - }, - "conditionalFormats": [], - "figures": [], - "areGridLinesVisible": true, - "isVisible": true - } - ], - "entities": {}, - "styles": { - "1": { - "textColor": "#01666b", - "bold": true, - "fontSize": 16 - }, - "2": { - "bold": true - }, - "3": { - "fillColor": "#f2f2f2", - "textColor": "#741b47" - }, - "4": { - "textColor": "#741b47" - }, - "5": { - "align": "right", - "bold": true - }, - "6": { - "fillColor": "#f2f2f2" - }, - "7": { - "textColor": "#01666b" - }, - "8": { - "fillColor": "#f2f2f2", - "textColor": "" - } - }, - "formats": { - "1": "#,##0", - "2": "0" - }, - "borders": { - "1": { - "bottom": [ - "thin", - "#000" - ] - }, - "2": { - "top": [ - "thin", - "#000" - ] - } - }, - "revisionId": "START_REVISION", - "chartOdooMenusReferences": { - "c30175e7-604c-4fc7-8adb-03be67f0dc8f": "sale.sale_menu_root", - "30212d4a-1f77-4cb8-8590-4eb34876e260": "sale.sale_menu_root", - "e35856cf-9090-489b-b055-2d441380d954": "sale.sale_menu_root", - "d0171069-d2cd-4c2c-a686-cd7515e93bb5": "sale.sale_menu_root" - }, - "odooVersion": 3, - "pivots": { - "1": { - "colGroupBys": [], - "context": { - "group_by_no_leaf": 1, - "group_by": [] - }, - "domain": [], - "id": "1", - "measures": [ - { - "field": "__count" - }, - { - "field": "price_subtotal" - } - ], - "model": "sale.report", - "rowGroupBys": [ - "product_id" - ], - "name": "Sales Analysis by Product Variant", - "sortedColumn": { - "groupId": [ - [], - [] - ], - "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] - } - }, - "2": { - "colGroupBys": [], - "context": { - "group_by_no_leaf": 1, - "group_by": [] - }, - "domain": [], - "id": "2", - "measures": [ - { - "field": "__count" - }, - { - "field": "price_subtotal" - } - ], - "model": "sale.report", - "rowGroupBys": [ - "categ_id" - ], - "name": "Sales Analysis by Product Category", - "sortedColumn": { - "groupId": [ - [], - [] - ], - "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] - } - } - }, - "pivotNextId": 3, - "lists": {}, - "listNextId": 1, - "globalFilters": [ - { - "id": "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52", - "type": "date", - "label": "Period", - "defaultValue": "last_month", - "rangeType": "relative", - "defaultsToCurrentPeriod": false, - "pivotFields": { - "1": { - "field": "date", - "type": "datetime", - "offset": 0 - }, - "2": { - "field": "date", - "type": "datetime", - "offset": 0 - } - }, - "listFields": {}, - "graphFields": { - "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { - "field": "date", - "type": "datetime", - "offset": 0 - }, - "e35856cf-9090-489b-b055-2d441380d954": { - "field": "date", - "type": "datetime", - "offset": 0 - } - } - }, - { - "id": "36814ad9-adac-4aba-a5ad-df595a306ef7", - "type": "relation", - "label": "Product", - "modelName": "product.product", - "defaultValue": [], - "defaultValueDisplayNames": [], - "rangeType": "year", - "defaultsToCurrentPeriod": false, - "pivotFields": { - "1": { - "field": "product_id", - "type": "many2one" - }, - "2": { - "field": "product_id", - "type": "many2one" - } - }, - "listFields": {}, - "graphFields": { - "e35856cf-9090-489b-b055-2d441380d954": { - "field": "product_id", - "type": "many2one" - }, - "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { - "field": "product_id", - "type": "many2one" - } - } - }, - { - "id": "edaf4d0c-df4b-48bc-b61a-48a07e8afd91", - "type": "relation", - "label": "Category", - "modelName": "product.category", - "defaultValue": [], - "defaultValueDisplayNames": [], - "rangeType": "year", - "defaultsToCurrentPeriod": false, - "pivotFields": { - "1": { - "field": "categ_id", - "type": "many2one" - }, - "2": { - "field": "categ_id", - "type": "many2one" - } - }, - "listFields": {}, - "graphFields": { - "e35856cf-9090-489b-b055-2d441380d954": { - "field": "categ_id", - "type": "many2one" - }, - "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { - "field": "categ_id", - "type": "many2one" - } - } - } - ] + "version": 12, + "sheets": [ + { + "id": "sheet1", + "name": "Dashboard", + "colNumber": 7, + "rowNumber": 53, + "rows": { + "6": { + "size": 40 + }, + "23": { + "size": 40 + }, + "40": { + "size": 40 + }, + "41": { + "size": 40 + } + }, + "cols": { + "0": { + "size": 275 + }, + "1": { + "size": 100 + }, + "2": { + "size": 100 + }, + "3": { + "size": 50 + }, + "4": { + "size": 275 + }, + "5": { + "size": 100 + }, + "6": { + "size": 100 + } + }, + "merges": [], + "cells": { + "A7": { + "style": 1, + "content": "[Best Sellers by Revenue](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"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,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Best Sellers by Revenue\"})", + "border": 1 + }, + "A24": { + "style": 1, + "content": "[Best Sellers by Units Sold](odoo://view/{\"viewType\":\"graph\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"product_id\"],\"graph_measure\":\"__count\",\"graph_mode\":\"bar\",\"graph_groupbys\":[\"product_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", + "border": 1 + }, + "A41": { + "style": 1, + "content": "[Best Selling Products](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"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,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", + "border": 1 + }, + "A42": { + "style": 2, + "content": "Product", + "border": 2 + }, + "A43": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",1)" + }, + "A44": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",2)" + }, + "A45": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",3)" + }, + "A46": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",4)" + }, + "A47": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",5)" + }, + "A48": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",6)" + }, + "A49": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",7)" + }, + "A50": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",8)" + }, + "A51": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",9)" + }, + "A52": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",10)" + }, + "B42": { + "style": 5, + "content": "Units", + "border": 2 + }, + "B43": { + "style": 6, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",1)" + }, + "B44": { + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",2)" + }, + "B45": { + "style": 6, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",3)" + }, + "B46": { + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",4)" + }, + "B47": { + "style": 6, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",5)" + }, + "B48": { + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",6)" + }, + "B49": { + "style": 6, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",7)" + }, + "B50": { + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",8)" + }, + "B51": { + "style": 6, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",9)" + }, + "B52": { + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",10)" + }, + "C42": { + "style": 5, + "content": "Revenue", + "border": 2 + }, + "C43": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",1)" + }, + "C44": { + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",2)" + }, + "C45": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",3)" + }, + "C46": { + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",4)" + }, + "C47": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",5)" + }, + "C48": { + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",6)" + }, + "C49": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",7)" + }, + "C50": { + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",8)" + }, + "C51": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",9)" + }, + "C52": { + "format": 1, + "content": "=ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",10)" + }, + "E7": { + "style": 7, + "border": 1 + }, + "E41": { + "style": 1, + "content": "[Best Selling Categories](odoo://view/{\"viewType\":\"pivot\",\"action\":{\"domain\":[],\"context\":{\"group_by\":[\"categ_id\"],\"pivot_measures\":[\"__count\",\"price_subtotal\"],\"pivot_column_groupby\":[],\"pivot_row_groupby\":[\"categ_id\"]},\"modelName\":\"sale.report\",\"views\":[[false,\"graph\"],[false,\"pivot\"],[false,\"dashboard\"],[false,\"search\"]]},\"threshold\":0,\"name\":\"Sales Analysis\"})", + "border": 1 + }, + "E42": { + "style": 2, + "content": "Category", + "border": 2 + }, + "E43": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",1)" + }, + "E44": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",2)" + }, + "E45": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",3)" + }, + "E46": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",4)" + }, + "E47": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",5)" + }, + "E48": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",6)" + }, + "E49": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",7)" + }, + "E50": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",8)" + }, + "E51": { + "style": 3, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",9)" + }, + "E52": { + "style": 4, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",10)" + }, + "F42": { + "style": 5, + "content": "Units", + "border": 2 + }, + "F43": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",1)" + }, + "F44": { + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",2)" + }, + "F45": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",3)" + }, + "F46": { + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",4)" + }, + "F47": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",5)" + }, + "F48": { + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",6)" + }, + "F49": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",7)" + }, + "F50": { + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",8)" + }, + "F51": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",9)" + }, + "F52": { + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",10)" + }, + "G42": { + "style": 5, + "content": "Revenue", + "border": 2 + }, + "G43": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",1)" + }, + "G44": { + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",2)" + }, + "G45": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",3)" + }, + "G46": { + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",4)" + }, + "G47": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",5)" + }, + "G48": { + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",6)" + }, + "G49": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",7)" + }, + "G50": { + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",8)" + }, + "G51": { + "style": 6, + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",9)" + }, + "G52": { + "format": 1, + "content": "=ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",10)" + }, + "A8": { + "border": 2 + }, + "A25": { + "border": 2 + }, + "B7": { + "border": 1 + }, + "B8": { + "border": 2 + }, + "B24": { + "border": 1 + }, + "B25": { + "border": 2 + }, + "B41": { + "border": 1 + }, + "C7": { + "border": 1 + }, + "C8": { + "border": 2 + }, + "C24": { + "border": 1 + }, + "C25": { + "border": 2 + }, + "C41": { + "border": 1 + }, + "D7": { + "border": 1 + }, + "D8": { + "border": 2 + }, + "D24": { + "border": 1 + }, + "D25": { + "border": 2 + }, + "E8": { + "border": 2 + }, + "E24": { + "border": 1 + }, + "E25": { + "border": 2 + }, + "F7": { + "border": 1 + }, + "F8": { + "border": 2 + }, + "F24": { + "border": 1 + }, + "F25": { + "border": 2 + }, + "F41": { + "border": 1 + }, + "G7": { + "border": 1 + }, + "G8": { + "border": 2 + }, + "G24": { + "border": 1 + }, + "G25": { + "border": 2 + }, + "G41": { + "border": 1 + } + }, + "conditionalFormats": [], + "figures": [ + { + "id": "e35856cf-9090-489b-b055-2d441380d954", + "x": 0, + "y": 178, + "width": 1000, + "height": 345, + "tag": "chart", + "data": { + "title": "", + "id": "e35856cf-9090-489b-b055-2d441380d954", + "background": "#FFFFFF", + "legendPosition": "none", + "metaData": { + "groupBy": [ + "product_id" + ], + "measure": "price_subtotal", + "order": "DESC", + "resModel": "sale.report" + }, + "searchParams": { + "comparison": null, + "context": { + "group_by_no_leaf": 1, + "group_by": [] + }, + "domain": [], + "groupBy": [ + "product_id" + ], + "orderBy": [] + }, + "type": "odoo_bar", + "verticalAxisPosition": "left", + "stacked": true + } + }, + { + "id": "d0171069-d2cd-4c2c-a686-cd7515e93bb5", + "x": 0, + "y": 586, + "width": 1000, + "height": 345, + "tag": "chart", + "data": { + "title": "", + "id": "d0171069-d2cd-4c2c-a686-cd7515e93bb5", + "background": "#FFFFFF", + "legendPosition": "none", + "metaData": { + "groupBy": [ + "product_id" + ], + "measure": "__count", + "order": "DESC", + "resModel": "sale.report" + }, + "searchParams": { + "comparison": null, + "context": { + "group_by_no_leaf": 1, + "group_by": [] + }, + "domain": [], + "groupBy": [ + "product_id" + ], + "orderBy": [] + }, + "type": "odoo_bar", + "verticalAxisPosition": "left", + "stacked": true + } + }, + { + "id": "5f383918-4073-4f19-9cc9-603216c953ad", + "x": 0, + "y": 0, + "width": 450, + "height": 120, + "tag": "chart", + "data": { + "baselineColorDown": "#DC6965", + "baselineColorUp": "#00A04A", + "baselineMode": "text", + "title": "Best Seller", + "type": "scorecard", + "background": "", + "baseline": "Data!C2", + "baselineDescr": "units sold", + "keyValue": "Data!B2" + } + }, + { + "id": "ec57f69b-f2b1-4dfc-990c-91ab61b526bf", + "x": 500, + "y": 0, + "width": 450, + "height": 120, + "tag": "chart", + "data": { + "baselineColorDown": "#DC6965", + "baselineColorUp": "#00A04A", + "baselineMode": "text", + "title": "Best Category", + "type": "scorecard", + "background": "", + "baseline": "Data!D3", + "baselineDescr": "sold", + "keyValue": "Data!B3" + } + } + ], + "areGridLinesVisible": true, + "isVisible": true + }, + { + "id": "a83a78f2-b124-4d6f-9726-125e62a32b8d", + "name": "Data", + "colNumber": 23, + "rowNumber": 88, + "rows": {}, + "cols": {}, + "merges": [], + "cells": { + "A1": { + "style": 6, + "content": "KPI" + }, + "A2": { + "style": 6, + "content": "Best selling product" + }, + "A3": { + "style": 6, + "content": "Best selling category" + }, + "B1": { + "style": 6, + "content": "Name" + }, + "B2": { + "style": 8, + "content": "=ODOO.PIVOT.HEADER(1,\"#product_id\",1)" + }, + "B3": { + "style": 8, + "content": "=ODOO.PIVOT.HEADER(2,\"#categ_id\",1)" + }, + "C1": { + "style": 6, + "content": "Units" + }, + "C2": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(1,\"__count\",\"#product_id\",1)" + }, + "C3": { + "style": 6, + "format": 2, + "content": "=ODOO.PIVOT(2,\"__count\",\"#categ_id\",1)" + }, + "D1": { + "style": 6, + "content": "Revenue" + }, + "D2": { + "style": 6, + "format": 2, + "content": "=FORMAT.LARGE.NUMBER(ODOO.PIVOT(1,\"price_subtotal\",\"#product_id\",1))" + }, + "D3": { + "style": 6, + "format": 2, + "content": "=FORMAT.LARGE.NUMBER(ODOO.PIVOT(2,\"price_subtotal\",\"#categ_id\",1))" + } + }, + "conditionalFormats": [], + "figures": [], + "areGridLinesVisible": true, + "isVisible": true + } + ], + "entities": {}, + "styles": { + "1": { + "textColor": "#01666b", + "bold": true, + "fontSize": 16 + }, + "2": { + "bold": true + }, + "3": { + "fillColor": "#f2f2f2", + "textColor": "#741b47" + }, + "4": { + "textColor": "#741b47" + }, + "5": { + "align": "right", + "bold": true + }, + "6": { + "fillColor": "#f2f2f2" + }, + "7": { + "textColor": "#01666b" + }, + "8": { + "fillColor": "#f2f2f2", + "textColor": "" + } + }, + "formats": { + "1": "#,##0", + "2": "0" + }, + "borders": { + "1": { + "bottom": [ + "thin", + "#000" + ] + }, + "2": { + "top": [ + "thin", + "#000" + ] + } + }, + "revisionId": "START_REVISION", + "chartOdooMenusReferences": { + "c30175e7-604c-4fc7-8adb-03be67f0dc8f": "sale.sale_menu_root", + "30212d4a-1f77-4cb8-8590-4eb34876e260": "sale.sale_menu_root", + "e35856cf-9090-489b-b055-2d441380d954": "sale.sale_menu_root", + "d0171069-d2cd-4c2c-a686-cd7515e93bb5": "sale.sale_menu_root" + }, + "odooVersion": 3, + "pivots": { + "1": { + "colGroupBys": [], + "context": { + "group_by_no_leaf": 1, + "group_by": [] + }, + "domain": [], + "id": "1", + "measures": [ + { + "field": "__count" + }, + { + "field": "price_subtotal" + } + ], + "model": "sale.report", + "rowGroupBys": [ + "product_id" + ], + "name": "Sales Analysis by Product Variant", + "sortedColumn": { + "groupId": [ + [], + [] + ], + "measure": "price_subtotal", + "order": "desc" + } + }, + "2": { + "colGroupBys": [], + "context": { + "group_by_no_leaf": 1, + "group_by": [] + }, + "domain": [], + "id": "2", + "measures": [ + { + "field": "__count" + }, + { + "field": "price_subtotal" + } + ], + "model": "sale.report", + "rowGroupBys": [ + "categ_id" + ], + "name": "Sales Analysis by Product Category", + "sortedColumn": { + "groupId": [ + [], + [] + ], + "measure": "price_subtotal", + "order": "desc" + } + } + }, + "pivotNextId": 3, + "lists": {}, + "listNextId": 1, + "globalFilters": [ + { + "id": "a6c3274b-e53c-4c6b-90a8-bc3e3d109f52", + "type": "date", + "label": "Period", + "defaultValue": "last_month", + "rangeType": "relative", + "defaultsToCurrentPeriod": false, + "pivotFields": { + "1": { + "field": "date", + "type": "datetime", + "offset": 0 + }, + "2": { + "field": "date", + "type": "datetime", + "offset": 0 + } + }, + "listFields": {}, + "graphFields": { + "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { + "field": "date", + "type": "datetime", + "offset": 0 + }, + "e35856cf-9090-489b-b055-2d441380d954": { + "field": "date", + "type": "datetime", + "offset": 0 + } + } + }, + { + "id": "36814ad9-adac-4aba-a5ad-df595a306ef7", + "type": "relation", + "label": "Product", + "modelName": "product.product", + "defaultValue": [], + "defaultValueDisplayNames": [], + "rangeType": "year", + "defaultsToCurrentPeriod": false, + "pivotFields": { + "1": { + "field": "product_id", + "type": "many2one" + }, + "2": { + "field": "product_id", + "type": "many2one" + } + }, + "listFields": {}, + "graphFields": { + "e35856cf-9090-489b-b055-2d441380d954": { + "field": "product_id", + "type": "many2one" + }, + "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { + "field": "product_id", + "type": "many2one" + } + } + }, + { + "id": "edaf4d0c-df4b-48bc-b61a-48a07e8afd91", + "type": "relation", + "label": "Category", + "modelName": "product.category", + "defaultValue": [], + "defaultValueDisplayNames": [], + "rangeType": "year", + "defaultsToCurrentPeriod": false, + "pivotFields": { + "1": { + "field": "categ_id", + "type": "many2one" + }, + "2": { + "field": "categ_id", + "type": "many2one" + } + }, + "listFields": {}, + "graphFields": { + "e35856cf-9090-489b-b055-2d441380d954": { + "field": "categ_id", + "type": "many2one" + }, + "d0171069-d2cd-4c2c-a686-cd7515e93bb5": { + "field": "categ_id", + "type": "many2one" + } + } + } + ] } \ No newline at end of file diff --git a/addons/spreadsheet_dashboard_sale/data/files/sales_dashboard.json b/addons/spreadsheet_dashboard_sale/data/files/sales_dashboard.json index deeb076372a..512c081a29b 100644 --- a/addons/spreadsheet_dashboard_sale/data/files/sales_dashboard.json +++ b/addons/spreadsheet_dashboard_sale/data/files/sales_dashboard.json @@ -4,70 +4,70 @@ { "id": "sheet1", "name": "Dashboard", - "colNumber": 9, - "rowNumber": 83, + "colNumber": 26, + "rowNumber": 102, "rows": { "6": { - "size": 40 + "size": 48 }, "18": { - "size": 40 + "size": 41 }, "19": { - "size": 40 + "size": 41 }, "31": { - "size": 40 + "size": 44 }, "32": { - "size": 40 + "size": 44 }, "44": { - "size": 40 + "size": 45 }, "45": { - "size": 40 + "size": 45 }, "57": { - "size": 40 + "size": 45 }, "58": { - "size": 40 + "size": 45 }, "70": { - "size": 40 + "size": 41 }, "71": { - "size": 40 + "size": 41 } }, "cols": { "0": { - "size": 175 + "size": 131 }, "1": { - "size": 100 + "size": 131 }, "2": { - "size": 100 + "size": 131 }, "3": { - "size": 100 + "size": 131 }, "4": { - "size": 50 + "size": 131 }, "5": { - "size": 175 + "size": 131 }, "6": { - "size": 100 + "size": 131 }, "7": { - "size": 100 + "size": 131 }, "8": { - "size": 100 + "size": 131 } }, "merges": [], @@ -2002,8 +2002,8 @@ "id": "51823220-f22b-4359-8711-579a249c91bb", "x": 0, "y": 0, - "width": 200, - "height": 120, + "width": 193, + "height": 117, "tag": "chart", "data": { "baselineColorDown": "#DC6965", @@ -2019,10 +2019,10 @@ }, { "id": "9a38934c-b454-4a4b-88aa-17d1b80dbf5f", - "x": 210, - "y": 0, - "width": 200, - "height": 120, + "x": 204, + "y": 2, + "width": 193, + "height": 117, "tag": "chart", "data": { "baselineColorDown": "#DC6965", @@ -2038,10 +2038,10 @@ }, { "id": "67858d0e-b5ba-4a3c-bf9e-c0fceaeedf65", - "x": 420, - "y": 0, - "width": 200, - "height": 120, + "x": 407, + "y": 1, + "width": 193, + "height": 117, "tag": "chart", "data": { "baselineColorDown": "#DC6965", @@ -2057,10 +2057,10 @@ }, { "id": "d43375c1-73a6-42a2-8dbd-0f13c285824f", - "x": 630, + "x": 611, "y": 0, - "width": 200, - "height": 120, + "width": 193, + "height": 117, "tag": "chart", "data": { "baselineColorDown": "#DC6965", @@ -2077,9 +2077,9 @@ { "id": "a527960b-0812-4291-baba-f6b4b5280a0d", "x": 0, - "y": 178, - "width": 1000, - "height": 230, + "y": 190, + "width": 859, + "height": 224, "tag": "chart", "data": { "title": "", @@ -2471,10 +2471,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "4": { @@ -2517,10 +2514,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "5": { @@ -2563,10 +2557,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "6": { @@ -2609,10 +2600,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "7": { @@ -2648,10 +2636,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "8": { @@ -2687,10 +2672,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "9": { @@ -2726,10 +2708,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "10": { @@ -2765,10 +2744,7 @@ [] ], "measure": "price_subtotal", - "order": "desc", - "originIndexes": [ - 0 - ] + "order": "desc" } }, "11": { @@ -3057,9 +3033,26 @@ "10": { "field": "product_id", "type": "many2one" + }, + "11": { + "field": "order_line", + "type": "one2many" + }, + "12": { + "field": "order_line", + "type": "one2many" + } + }, + "listFields": { + "1": { + "field": "order_line", + "type": "one2many" + }, + "2": { + "field": "order_line", + "type": "one2many" } }, - "listFields": {}, "graphFields": { "a527960b-0812-4291-baba-f6b4b5280a0d": { "field": "product_id", @@ -3176,9 +3169,26 @@ "10": { "field": "categ_id", "type": "many2one" + }, + "11": { + "field": "order_line", + "type": "one2many" + }, + "12": { + "field": "order_line", + "type": "one2many" + } + }, + "listFields": { + "1": { + "field": "order_line", + "type": "one2many" + }, + "2": { + "field": "order_line", + "type": "one2many" } }, - "listFields": {}, "graphFields": { "a527960b-0812-4291-baba-f6b4b5280a0d": { "field": "categ_id",