Browse Source

IMP acc_bank_stat_imp_ofx: add checknum in name when required

12.0
David Beal 5 years ago
parent
commit
7a62e60c37
  1. 8
      account_bank_statement_import_ofx/wizard/account_bank_statement_import.py

8
account_bank_statement_import_ofx/wizard/account_bank_statement_import.py

@ -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,

Loading…
Cancel
Save