Some changes for odoo 9.0

This commit is contained in:
Ilyas
2015-11-18 14:50:48 +05:00
committed by Benjamin
parent 7117737cea
commit c3ed65b95a
2 changed files with 2 additions and 2 deletions

View File

@@ -16,5 +16,5 @@
'python': ['ofxparse'],
},
'auto_install': False,
'installable': False,
'installable': True,
}

View File

@@ -46,7 +46,7 @@ class AccountBankStatementImport(models.TransientModel):
# generic module uses to find partner/bank)
bank_account_id = partner_id = False
banks = self.env['res.partner.bank'].search(
[('owner_name', '=', transaction.payee)], limit=1)
[('bank_name', '=', transaction.payee)], limit=1)
if banks:
bank_account = banks[0]
bank_account_id = bank_account.id