odoo/odoo#203475

Created by Bugfix, Yolann Sabaux (yosa)
Merged at a3da560d510023283c41c6feeb21c2ae41612730

Statuses:

label
odoo-dev:17.0-opw-4349684-amount_to_check_dashboard-yosa
head
7caf1f4d37363520de6afb76bf1deed6f8df4b66
merged
6 months ago by Accounting, Florian Gilbert (flg)
odoo/odoo
17.0 #203475
saas-17.4 #208444
18.0 #210835
saas-18.1 #215509
saas-18.2 #215512
saas-18.3 #223484
saas-18.4 #223500
19.0
master #223637

[FIX] account: dashboard to_check wrongly displayed

Steps to reproduce:
- create a new journal with foreign currency
- create an invoice (amount:100) with this journal and set it "to check"
- Go to dashboard

Issue:
check balance is in company currency amount but the symbol is the one from the currency of the journal

Solution:
Chkl: <strike>Misc and Sales/Purchase Journals should display all amounts in company currency</strike>
Eventually, we decided that it would be better for the stable versions to keep the currency displayed as the one from the journals.
We therefore use the same logic as for the bill/invoices

opw-4349684