Ravish(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-995836-rmu into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #995836 in OpenERP Addons: "problem when refund an invoice with 
prepayment as payment term"
  https://bugs.launchpad.net/openobject-addons/+bug/995836

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-995836-rmu/+merge/104892

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!! 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-995836-rmu/+merge/104892
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-995836-rmu.
=== 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 @@
                     to_reconcile_ids = {}
                     for line in movelines:
                         if line.account_id.id == inv.account_id.id:
-                            to_reconcile_ids[line.account_id.id] = [line.id]
+                            to_reconcile_ids.setdefault(line.account_id.id,[]).append(line.id)
                         if type(line.reconcile_id) != osv.orm.browse_null:
                             reconcile_obj.unlink(cr, uid, line.reconcile_id.id)
                     wf_service.trg_validate(uid, 'account.invoice', \

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to