-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] account_reconcile_oca: Make it work with foreign currency #577
Conversation
Still missing a test in order to leave this documented, but should be functional 😄 |
@etobella Dear Enric! Thank You for taking a look into it!
Unfortunately, the issue is the same: The widget takes the amount of the main currency and puts it where the amount in the secondary currency should be. I can manually correct the amount, but odoo still does not allow to reconcile: It messes up the currencies again
|
Did you use the one from the PR? I mean, when you come from an external currency, it should show the in currency column 🤔 |
I have used the below files. I just checked a couple of lines with nano on the server. They are the files from the PR #577 |
Ok, I will check again, thanks! |
I added some more info in order to show when a reconcile involves foreign currencies. You can use runboat in order to test it. |
You have to create a new bank account (a new journal)! In my case: Statement: EUR I should be possible to reconcile EUR with EUR! |
I see!!! The problem is raised when we use a journal from a different currency! Thanks! |
Well, now it worked for me. Let's see if it works for you 😄 |
@etobella unfortunately I have little, basically no knowledge of coding. I tried to figure out what have You added. Shall I look at this database? |
You just need to reproduce the error in this runboat database. If you cannot reproduce it again and all works as expected, then it is fixed. Don't worry about the code, I was looking for a functional review 😁 |
Then the issue is the same. If You take a look at the runboat database. The base currency is USD the invoice is in HUF and the payment was made in HUF as well. For some reason the reconciliation widget turns the HUF amount into USD. The amount is 500 000 HUF(Ft) and it should stay 500 000 and NOT 1413.71 USD which is the "bookkeeping" amount. |
I see, the problem comes from the data in "amount in Currency" that is not properly showed. Right now it should work properly. It only failed on the first line. |
True, I added the field, but it is hidden. BTW, I found a small Odoo issue with that, as an aggregation line is added by default, but it shouldn't 😞 odoo/odoo#133274 |
The two screenshots seem to me identical |
Look at the footer. In the first one there's a gray line with a black line |
I just logged in to 49355b2 and changed noting. But if I hit the reconcile button, I get an error straight away:
|
The one you used, was a mistake I did. I merged two different PRs by error. You can test the current one 😄 |
Well, I added some tests. It should be ready for review now 😄 |
@rinaldifirdaus I checked runboat and I saw your item, but I am unable to reproduce what you did 😢 |
…ifferent currency
@etobella , thanks for checking!
|
I can not confirm this either. On 91e9748 checks out almost perfectly. You can reconcile but I do not understand this negative sign on front. If this is some kind of accounting stuff. I can live it it. |
LGTM |
/ocabot merge minor |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at dc7f1ea. Thanks a lot for contributing to OCA. ❤️ |
Fixes #574
@nagybal Can you test it please?