From 91f4b4a2e1eaeb6dc979f28323bebfcaaa7d0059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lef=C3=A8vre?= Date: Tue, 2 May 2023 09:22:54 +0000 Subject: [PATCH] [FIX] spreadsheet_dashboard_account: count individual invoices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the Invoicing dashboard, the "Average Invoice" scorecoard displays the wrong amount of invoices. It displays the number of "account.invoice.report" lines. This commit fixes the issue by displaying the count_unique measure of "move_id" task 3180524 closes odoo/odoo#120322 X-original-commit: 6232896fe06640de6d461e645811673fe27481aa Signed-off-by: Rémi Rahir (rar) Signed-off-by: Lucas Lefèvre (lul) --- .../data/files/invoicing_dashboard.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json b/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json index 8de041c4666..fb79df8424e 100644 --- a/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json +++ b/addons/spreadsheet_dashboard_account/data/files/invoicing_dashboard.json @@ -1389,7 +1389,7 @@ }, "B3": { "format": 1, - "content": "=ODOO.PIVOT(6,\"__count\")" + "content": "=ODOO.PIVOT(6,\"move_id\")" }, "B4": { "content": "=YEAR(TODAY())" @@ -1864,7 +1864,7 @@ "id": "6", "measures": [ { - "field": "__count" + "field": "move_id" }, { "field": "price_subtotal"