[FIX] spreadsheet_dashboard_account: display unpaid amount absolute value

In the Invoicing dashboard, the upper-left most scorecard displays the total
invoiced amount.
The baseline "X unpaid" is wrong. It was displaying the difference between
the key value (total invoiced amount) and the unpaid amount.
That means if not a single invoice was paid (everything unpaid), it would
display "0 unpaid". That obviously not correct.

opw-3248761

closes odoo/odoo#118030

X-original-commit: 2b795ee59ef063b5b7298382008ebd61c51de36e
Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
This commit is contained in:
Lucas Lefèvre
2023-04-07 17:46:42 +02:00
parent 79f85ab312
commit fccbc91cc8
@@ -1281,7 +1281,7 @@
"data": {
"baselineColorDown": "#DC6965",
"baselineColorUp": "#00A04A",
"baselineMode": "difference",
"baselineMode": "text",
"title": "Invoiced",
"type": "scorecard",
"baseline": "Data!C11",