Rifakat (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-577061-rha into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577061-rha/+merge/116186

Hello,

Formatted IBAN account number by addind spaces while doing check with partner 
IBAN account number.

System automatically formats IBAN account numbers by adding spaces for better 
visualization(module base_iban),
but bank sends CODA file which has IBAN accounts without spaces, Ex. 
BE05735030524975

So it gives warning while we import any CODA file as partner account 
number(BE05 7350 3052 4975) does not
match with CODA file bank account number(BE05735030524975).

Please review this fix.

Regards,
Rifakat Haradwala
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577061-rha/+merge/116186
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-577061-rha.
=== modified file 'account_coda/wizard/account_coda_import.py'
--- account_coda/wizard/account_coda_import.py	2012-06-05 12:25:17 +0000
+++ account_coda/wizard/account_coda_import.py	2012-07-23 04:53:19 +0000
@@ -28,6 +28,7 @@
 import re
 from traceback import format_exception
 from sys import exc_info
+from base_iban import base_iban
 logger=netsvc.Logger()
 
 class account_coda_import(osv.osv_memory):
@@ -396,6 +397,7 @@
                                 st_line['account_id'] = transfer_acc
                                 match = True
                             elif find_partner:
+                                counterparty_number = base_iban._pretty_iban(base_iban._format_iban(counterparty_number))
                                 bank_ids = partner_bank_obj.search(cr,uid,[('acc_number','=', counterparty_number)])
                         if not match and find_partner and bank_ids:
                             if len(bank_ids) > 1:

_______________________________________________
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