Merge lp:~openerp-dev/openobject-addons/trunk-bug-995836-rmu into lp:openobject-addons

Proposed by Ravish(OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-995836-rmu
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/wizard/account_invoice_refund.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-995836-rmu
Reviewer Review Type Date Requested Status
Amit Parik (community) Approve
OpenERP Core Team Pending
Review via email: mp+104892@code.launchpad.net

Description of the change

Hello,

I have fix the problem of invoice refund that invoice was stay in open state ,when refund an invoice with prepayment as payment term.Now it is goes paid state.

Thanks!!

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) :
review: Approve

Unmerged revisions

6778. By salvi

[FIX]the problem when refund an invoice with prepayment as payment term

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/wizard/account_invoice_refund.py'
2--- account/wizard/account_invoice_refund.py 2012-03-07 10:42:05 +0000
3+++ account/wizard/account_invoice_refund.py 2012-05-07 11:38:19 +0000
4@@ -157,7 +157,7 @@
5 to_reconcile_ids = {}
6 for line in movelines:
7 if line.account_id.id == inv.account_id.id:
8- to_reconcile_ids[line.account_id.id] = [line.id]
9+ to_reconcile_ids.setdefault(line.account_id.id,[]).append(line.id)
10 if type(line.reconcile_id) != osv.orm.browse_null:
11 reconcile_obj.unlink(cr, uid, line.reconcile_id.id)
12 wf_service.trg_validate(uid, 'account.invoice', \

Subscribers

People subscribed via source and target branches

to all changes: