[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
This commit is contained in:
Lucas Lefèvre
2023-02-03 07:07:08 +01:00
parent 57070641c1
commit ff9470347d
@@ -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": {