From c9569adeae25adb936d1019818323ae191fdd9e5 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 2 May 2018 22:59:13 +0200 Subject: [PATCH] acc_type on res.partner.bank is not stored any more, cf https://github.com/OCA/bank-payment/pull/467 --- account_invoice_factur-x/models/account_invoice.py | 2 +- .../models/business_document_import.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/account_invoice_factur-x/models/account_invoice.py b/account_invoice_factur-x/models/account_invoice.py index a0b6266054..385c2fafe5 100644 --- a/account_invoice_factur-x/models/account_invoice.py +++ b/account_invoice_factur-x/models/account_invoice.py @@ -18,7 +18,7 @@ FACTURX_FILENAME = 'factur-x.xml' DIRECT_DEBIT_CODES = ('49', '59') -CREDIT_TRF_CODES = ('30', '31') +CREDIT_TRF_CODES = ('30', '31', '42') class AccountInvoice(models.Model): diff --git a/base_business_document_import/models/business_document_import.py b/base_business_document_import/models/business_document_import.py index 5d8d7585d9..2f62ab6498 100644 --- a/base_business_document_import/models/business_document_import.py +++ b/base_business_document_import/models/business_document_import.py @@ -265,7 +265,6 @@ def _match_partner_bank( "IBAN %s is not valid, so it has been ignored.") % iban) return False bankaccounts = rpbo.search([ - ('acc_type', '=', 'iban'), ('sanitized_acc_number', '=', iban), ('partner_id', '=', partner.id)]) if bankaccounts: