Can't pay foreign currency supplier invoices with foreign currency vouchers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
openobject-
Steps:
- Create a new db. Install account_voucher and select the 'generic account chart'
- Create a new account like 'Change rate difference' and associate it to 'Income Currency Rate' and to 'Expense Currency Rate' in the company form.
- Create a 'Bank USD' account
- Create a 'Bank USD' journal. Set its currency to USD.
- Edit the USD currency and create a new rate with today date
- Create a new supplier invoice with currency = USD and date = yesterday
- Click 'pay invoice'. The voucher is correcly filled with amounts, journal and lines (I'm paying 100 $ through my USD bank account). Of course the EUR corresponding amounts are different as yesterday (invoice's date) USD had a different rate from today (payment's date).
- Validate tha voucher
The generated journal items are wrong. Moreover the invoice balance is 200 and it is not paid.
Related branches
- Amit Parik (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 21 lines (+3/-1)1 file modifiedaccount_voucher/account_voucher.py (+3/-1)
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
summary: |
- Can't pay foreign currency invoices with foreign currency vouchers + Can't pay foreign currency supplier invoices with foreign currency + vouchers |
Hello, maybe the attached patch is a solution