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
=== modified file 'account/wizard/account_invoice_refund.py'
--- account/wizard/account_invoice_refund.py 2012-03-07 10:42:05 +0000
+++ account/wizard/account_invoice_refund.py 2012-05-07 11:38:19 +0000
@@ -157,7 +157,7 @@
157 to_reconcile_ids = {}157 to_reconcile_ids = {}
158 for line in movelines:158 for line in movelines:
159 if line.account_id.id == inv.account_id.id:159 if line.account_id.id == inv.account_id.id:
160 to_reconcile_ids[line.account_id.id] = [line.id]160 to_reconcile_ids.setdefault(line.account_id.id,[]).append(line.id)
161 if type(line.reconcile_id) != osv.orm.browse_null:161 if type(line.reconcile_id) != osv.orm.browse_null:
162 reconcile_obj.unlink(cr, uid, line.reconcile_id.id)162 reconcile_obj.unlink(cr, uid, line.reconcile_id.id)
163 wf_service.trg_validate(uid, 'account.invoice', \163 wf_service.trg_validate(uid, 'account.invoice', \

Subscribers

People subscribed via source and target branches

to all changes: