[FIX]l10n_be_coda : added spaces in account number while doing the check, systems stores account number with spaces and coda file account number does not have space

bzr revid: mma@tinyerp.com-20121105103227-9465j8pqr1ludw8u
This commit is contained in:
Rifakat (OpenERP) 2012-11-05 16:02:27 +05:30 committed by Mayur Maheshwari (OpenERP)
parent 29fffbc97d
commit 94b2c85d2a
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import logging
import re
from traceback import format_exception
from sys import exc_info
from base_iban import base_iban
_logger = logging.getLogger(__name__)
class account_coda_import(osv.osv_memory):
@ -398,6 +399,7 @@ class account_coda_import(osv.osv_memory):
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: