Skip to content
Snippets Groups Projects
Commit 215ed851 authored by Lucas Lefèvre (lul)'s avatar Lucas Lefèvre (lul)
Browse files

[FIX] spreadsheet_dashboard_sale_expense: remove hardcoded currency


The Expense dashboard[^1] is displaying values with the €
currency, no matter the real record's currency.

It should use the automatic currency formatting of LIST functions
to use the record's currency.

This commits removes the hardcoded currency formats.
Note that the automatic format displays the decimal values while
the hardcoded format did not.
This is a functional change.

This fix does not affect existing databases. Delete the dashboard
then update module 'spreadsheet_dashboard_hr_expense' if you
want the fix on your database. (or remove the format manually by
editing the spreadsheet).

Note: a previous commit (54c99ede) already fixed similar issues
for several dashboards. This one was missed.

fixes #135250

closes odoo/odoo#135799

Signed-off-by: default avatarLucas Lefèvre (lul) <lul@odoo.com>
parent a03ad54e
Branches
Tags
No related merge requests found
......@@ -250,47 +250,37 @@
},
"C21": {
"style": 7,
"format": 2,
"content": "=ODOO.LIST(1,1,\"total_amount_company\")"
},
"C22": {
"format": 2,
"content": "=ODOO.LIST(1,2,\"total_amount_company\")"
},
"C23": {
"style": 7,
"format": 2,
"content": "=ODOO.LIST(1,3,\"total_amount_company\")"
},
"C24": {
"format": 2,
"content": "=ODOO.LIST(1,4,\"total_amount_company\")"
},
"C25": {
"style": 7,
"format": 2,
"content": "=ODOO.LIST(1,5,\"total_amount_company\")"
},
"C26": {
"format": 2,
"content": "=ODOO.LIST(1,6,\"total_amount_company\")"
},
"C27": {
"style": 7,
"format": 2,
"content": "=ODOO.LIST(1,7,\"total_amount_company\")"
},
"C28": {
"format": 2,
"content": "=ODOO.LIST(1,8,\"total_amount_company\")"
},
"C29": {
"style": 7,
"format": 2,
"content": "=ODOO.LIST(1,9,\"total_amount_company\")"
},
"C30": {
"format": 2,
"content": "=ODOO.LIST(1,10,\"total_amount_company\")"
},
"C33": {
......@@ -300,47 +290,37 @@
},
"C34": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",1)"
},
"C35": {
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",2)"
},
"C36": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",3)"
},
"C37": {
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",4)"
},
"C38": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",5)"
},
"C39": {
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",6)"
},
"C40": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",7)"
},
"C41": {
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",8)"
},
"C42": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",9)"
},
"C43": {
"format": 2,
"content": "=ODOO.PIVOT(9,\"total_amount_company\",\"#sale_order_id\",10)"
},
"E19": {
......@@ -530,47 +510,37 @@
},
"G21": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",1)"
},
"G22": {
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",2)"
},
"G23": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",3)"
},
"G24": {
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",4)"
},
"G25": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",5)"
},
"G26": {
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",6)"
},
"G27": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",7)"
},
"G28": {
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",8)"
},
"G29": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",9)"
},
"G30": {
"format": 2,
"content": "=ODOO.PIVOT(1,\"total_amount_company\",\"#product_id\",10)"
},
"G33": {
......@@ -580,47 +550,37 @@
},
"G34": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",1)"
},
"G35": {
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",2)"
},
"G36": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",3)"
},
"G37": {
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",4)"
},
"G38": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",5)"
},
"G39": {
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",6)"
},
"G40": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",7)"
},
"G41": {
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",8)"
},
"G42": {
"style": 7,
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",9)"
},
"G43": {
"format": 2,
"content": "=ODOO.PIVOT(4,\"total_amount_company\",\"#employee_id\",10)"
},
"A8": {
......@@ -915,8 +875,7 @@
}
},
"formats": {
"1": "0",
"2": "#,##0[$€]"
"1": "0"
},
"borders": {
"1": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment