Merge lp:~openerp-dev/openobject-addons/6.0-opw-32041-pso into lp:openobject-addons/6.0

Proposed by Priyesh (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-32041-pso
Merge into: lp:openobject-addons/6.0
Diff against target: 17 lines (+2/-2)
1 file modified
account_voucher/account_voucher.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-32041-pso
Reviewer Review Type Date Requested Status
nel Pending
Review via email: mp+83934@code.launchpad.net

Description of the change

Hello,

To reproduce the issue, follow the steps:

1. Create 2 invoices with company currency (EUR) for a customer.
2. Create other invoice with other currency rather than company currency (CNY) having same customer
3. Validate both invoices
4. Open Customer Payment form and set Payment method having currency CNY
5. Select the customer and It will fetch both journal entries created from invoices
6. Set Paid amount and Check the distribution for Amount among voucher lines

Can you please share your views on this ?

If anything is missing, Would you please describe it with your test cases ?

Thanks,
Priyesh

To post a comment you must log in.

Unmerged revisions

4937. By Eric Caudal - www.elico-corp.com

[IMP] account_voucher: Improved onchange_partner_id to calculate correct amount with multicurrency(case:32041)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher/account_voucher.py'
2--- account_voucher/account_voucher.py 2011-10-24 07:25:44 +0000
3+++ account_voucher/account_voucher.py 2011-11-30 12:33:29 +0000
4@@ -509,11 +509,11 @@
5 if line.credit:
6 amount = min(amount_unreconciled, currency_pool.compute(cr, uid, company_currency, currency_id, abs(total_debit), context=context_multi_currency))
7 rs['amount'] = amount
8- total_debit -= amount
9+ total_debit -= currency_pool.compute(cr, uid, currency_id, company_currency, amount, context=context_multi_currency)
10 else:
11 amount = min(amount_unreconciled, currency_pool.compute(cr, uid, company_currency, currency_id, abs(total_credit), context=context_multi_currency))
12 rs['amount'] = amount
13- total_credit -= amount
14+ total_credit -= currency_pool.compute(cr, uid, currency_id, company_currency, amount, context=context_multi_currency)
15
16 default['value']['line_ids'].append(rs)
17 if rs['type'] == 'cr':