← Back to team overview

openerp-india team mailing list archive

[Bug 1206609] Re: bug l10n_be_coda: creation of bank account because the matching is wrong

 

replace the line 44 by this code. Sorry I'm getting the branch and it taking too long so this is all I can provide for now.
     
cr.execute("select id from res_partner_bank where replace(replace(acc_number,' ',''),'-','') = %s",(str(data['coda_account_number']),))
            ids = [id[0] for id in cr.fetchall()]
            # Filter bank accounts which are not allowed
            acc_number_ids = self.pool.get('res.partner.bank').search(cr, uid, [('id', 'in', ids)])

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1206609

Title:
  bug l10n_be_coda: creation of bank account because the matching is
  wrong

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi,

  Here we have a little bug concerning creation of unnecessary bank
  account on partner the following code at line 44

  http://bazaar.launchpad.net/~openerp/openobject-
  addons/7.0/view/head:/l10n_be_coda/l10n_be_coda.py#L44

  make a wrong matching cause it doens't take into account the
  difference between to format of bank account number. In fact, the
  account number from the coda come totally stripped from space
  charachter while the one of the patner is iban format for example BEXX
  XXXX XXXX XXXX.

  Applying the given patch should solve this problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1206609/+subscriptions


References