From ff9470347de061eeb07f790eafc66315ab9c14c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lef=C3=A8vre?= Date: Thu, 2 Feb 2023 11:54:21 +0000 Subject: [PATCH] [FIX] spreadsheet_dashboard_sale: display product quantity as int In the Sales dashboards, the product quantities (cells B43:B52) are displayed with the automatic pivot format which displays floats with decimal. If the product is a chair, it's weird to see the quantity ending with ".0" Units Office chair 11.0 Even if some unit of amounts can be expressed with decimal values, we decided to round the amounts in the dashboard by forcing the integer format. X-original-commit: bd029041a82278a8dc7cf1b363e87c70845acd3a Part-of: odoo/odoo#111762 --- .../data/files/product_dashboard.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json b/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json index 9fccec09774..682f4b6c30f 100644 --- a/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json +++ b/addons/spreadsheet_dashboard_sale/data/files/product_dashboard.json @@ -112,37 +112,47 @@ }, "B43": { "style": 6, + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",1)" }, "B44": { + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",2)" }, "B45": { "style": 6, + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",3)" }, "B46": { + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",4)" }, "B47": { "style": 6, + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",5)" }, "B48": { + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",6)" }, "B49": { "style": 6, + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",7)" }, "B50": { + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",8)" }, "B51": { "style": 6, + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",9)" }, "B52": { + "format": 2, "content": "=ODOO.PIVOT(1,\"product_uom_qty\",\"#product_id\",10)" }, "C42": {