mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
Some changes for odoo 9.0
This commit is contained in:
@@ -16,5 +16,5 @@
|
|||||||
'python': ['ofxparse'],
|
'python': ['ofxparse'],
|
||||||
},
|
},
|
||||||
'auto_install': False,
|
'auto_install': False,
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class AccountBankStatementImport(models.TransientModel):
|
|||||||
# generic module uses to find partner/bank)
|
# generic module uses to find partner/bank)
|
||||||
bank_account_id = partner_id = False
|
bank_account_id = partner_id = False
|
||||||
banks = self.env['res.partner.bank'].search(
|
banks = self.env['res.partner.bank'].search(
|
||||||
[('owner_name', '=', transaction.payee)], limit=1)
|
[('bank_name', '=', transaction.payee)], limit=1)
|
||||||
if banks:
|
if banks:
|
||||||
bank_account = banks[0]
|
bank_account = banks[0]
|
||||||
bank_account_id = bank_account.id
|
bank_account_id = bank_account.id
|
||||||
|
|||||||
Reference in New Issue
Block a user