Skip to content
Snippets Groups Projects
Commit 4afc7351 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] pos_daily_sales_reports: use pos config currency when possible


Current behavior:
The currency used to create the report is the one of the company. But
if you use a different currency in the pos config, the report will still
be in the company currency.
To fix that we check if all report's config use the same currency and
use it if it's the case we use the pos config currency. And if it's not
possible we use the company currency.

Steps to reproduce:
- Create a second pos
- Change the sale journal and the pricelist to use a different currency
- Open a session and make a sale
- Close the session
- Generate the daily report for the second pos
- The currency is the one of the company

opw-3463280

closes odoo/odoo#132852

Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
parent 6ef7e188
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment