The balance of the bank statement with foreign currencies is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
Vinay Rana (OpenERP) |
Bug Description
In the file account_
I have found a solution that seems to work. I submit the date of the move line and round the amount:
Line 30:
from tools import config
Line 66:
res[statement.id] += round(res_
Line 75:
res[statement.id] -= round(res_
Changed in openobject-addons: | |
status: | New → Confirmed |
Hello Wyden,
I have gone through the above scenario.
Everything seems to be fine for us.
*There is actually no need for the round() function suggested above as the value which comes from the compute() method of 'res.currency' object is already rounded, so it is unnecessary to apply the round() function again.
**Other aspect the 'currency rate' is already coming from the 'line date' so there seems to be no need to update the context by passing the 'line.date'.
I hope this helps.
However, you can provide me with an example or screen-shot about the problem you facing on your side.
Thanks.