Browse Source

Merge pull request #13 from akretion/8.0-fix-identify-by-bank-account

FIX identify partner by res.partner.bank
pull/20/head
Stéphane Bidoul (ACSONE) 10 years ago
parent
commit
f0c2e68c65
  1. 1
      account_bank_statement_import/account_bank_statement_import.py

1
account_bank_statement_import/account_bank_statement_import.py

@ -220,6 +220,7 @@ class account_bank_statement_import(osv.TransientModel):
bank_account_id = False
identifying_string = line_vals.get('account_number', False)
if identifying_string:
identifying_string = identifying_string.replace(' ', '').replace('-', '')
ids = self.pool.get('res.partner.bank').search(cr, uid, [('acc_number', '=', identifying_string)], context=context)
if ids:
bank_account_id = ids[0]

Loading…
Cancel
Save