Merge lp:~openerp-dev/openobject-addons/5.0-opw-7285-pso into lp:openobject-addons/5.0
Status: | Merged |
---|---|
Merged at revision: | 2924 |
Proposed branch: | lp:~openerp-dev/openobject-addons/5.0-opw-7285-pso |
Merge into: | lp:openobject-addons/5.0 |
Diff against target: |
38 lines (+11/-13) 1 file modified
account/account_bank_statement.py (+11/-13) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/5.0-opw-7285-pso |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphael Collet (OpenERP) (community) | Approve | ||
qdp (OpenERP) | Approve | ||
Review via email:
|
Description of the change
Hello,
Improved balance computation of bank statement for multi-currency (case:7285)
To reproduce:
1. Currency of Bank Journal = ARS, Company currency = EUR
2. Create a Bank statement (so it's currency = ARS)
3. Create a start balance = 0 ans end balance = 100
4. Create entry lines: First line with 20, and second line with 80 (so these amounts are in ARS)
5. Confirm the bank Statement
6. The Balance will be correct (100), and on Real entries tab, you'll lines with amounts converted in EUR
7. Now change the ARS rate (date = today)
8. Go back to the Confirmed Bank Statement and reload it, you'll face the problem that the Balance changed...so the balance is now not correct anymore
Thanks,
Priyesh
I have reworked a bit the code. currency.
This also fixes a missing test on line.account_id when adding line.amount_
Quentin should review this one...