Can't pay foreign currency supplier invoices with foreign currency vouchers

Bug #1007487 reported by Lorenzo Battistini
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

openobject-addons/6.1 revno 6822

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

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Hello, maybe the attached patch is a solution

summary: - Can't pay foreign currency invoices with foreign currency vouchers
+ Can't pay foreign currency supplier invoices with foreign currency
+ vouchers
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello,

 It has been fixed on lp:~openerp-dev/openobject-addons/trunk-bug-1007487-rmu branch with Following Revision Number and Revision ID.

Revision Number: 7061
Revision ID: <email address hidden>
This will soon merge with trunk

 Thank you!

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
OpenBias (openbias) wrote :

This bug also affects 6.1 Series. He is the patch for 6.1

Revision history for this message
Lorenzo Battistini (elbati) wrote :

Hello OpenBias,
doesn't the patch proposed at comment #1 work for you on 6.1? Or do you think your patch is better?

Revision history for this message
qdp (OpenERP) (qdp) wrote :

 Hello everyone,

this issue has totally been solved as of revision 7745 of trunk. The proposed patch was partially used (at least the idea) but another part of the fix was already implemented in trunk, in a better way. That's why i reject the merge proposal linked.

Thanks for the contribution,
Quentin

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.