Divyesh Makwana(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-912179-mdi into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #912179 in OpenERP Addons: "Account: Invoice pay using bank statement 
does not reconcile"
  https://bugs.launchpad.net/openobject-addons/+bug/912179

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-912179-mdi/+merge/87928

Hello Sir,

I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/912179 
"Account: Invoice pay using bank statement does not reconcile".

Thanks and Regards,

Divyesh Makwana(MDI)

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-912179-mdi/+merge/87928
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-912179-mdi.
=== modified file 'account_voucher/wizard/account_statement_from_invoice.py'
--- account_voucher/wizard/account_statement_from_invoice.py	2011-12-19 16:54:40 +0000
+++ account_voucher/wizard/account_statement_from_invoice.py	2012-01-09 12:43:34 +0000
@@ -89,8 +89,13 @@
             voucher_id = voucher_obj.create(cr, uid, voucher_res, context=context)
 
             voucher_line_dict =  {}
-            if result['value']['line_ids']:
-                for line_dict in result['value']['line_ids']:
+            if result['value']['line_cr_ids']:
+                for line_dict in result['value']['line_cr_ids']:
+                    move_line = line_obj.browse(cr, uid, line_dict['move_line_id'], context)
+                    if line.move_id.id == move_line.move_id.id:
+                        voucher_line_dict = line_dict
+            if result['value']['line_dr_ids']:
+                for line_dict in result['value']['line_dr_ids']:
                     move_line = line_obj.browse(cr, uid, line_dict['move_line_id'], context)
                     if line.move_id.id == move_line.move_id.id:
                         voucher_line_dict = line_dict

_______________________________________________
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