Skip to content

Commit

Permalink
acc_type on res.partner.bank is not stored any more, cf OCA/bank-paym…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via authored and Alexis de Lattre committed May 2, 2018
1 parent 372532a commit c9569ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion account_invoice_factur-x/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def _match_partner_bank(
"IBAN <b>%s</b> 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:
Expand Down

0 comments on commit c9569ad

Please sign in to comment.