mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
IMP acc_bank_stat_imp_ofx: add checknum in name when required
This commit is contained in:
committed by
Alexis de Lattre
parent
01d6e79371
commit
a48c9d3cc4
@@ -53,10 +53,14 @@ class AccountBankStatementImport(models.TransientModel):
|
||||
# If you read odoo10/addons/account_bank_statement_import/
|
||||
# account_bank_statement_import.py, it's the only 2 keys
|
||||
# we can provide to match a partner.
|
||||
name = transaction.payee
|
||||
if transaction.checknum:
|
||||
name += " " + transaction.checknum
|
||||
if transaction.memo:
|
||||
name += " : " + transaction.memo
|
||||
vals = {
|
||||
'date': transaction.date,
|
||||
'name': transaction.payee + (
|
||||
transaction.memo and ': ' + transaction.memo or ''),
|
||||
'name': name,
|
||||
'ref': transaction.id,
|
||||
'amount': float(transaction.amount),
|
||||
'unique_import_id': transaction.id,
|
||||
|
||||
Reference in New Issue
Block a user