Skip to content

Commit

Permalink
Fix multi-tag iban for customer invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarlr committed Mar 2, 2023
1 parent 2ffafd5 commit 416de0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def parse_facturae_invoice(self, xml_root, xsd_file):
]
attachments = {}
if 'customer' in self.env.context:
acc_number = invoice.find('PaymentDetails/Installment/AccountToBeCredited/AccountNumber').text
account_to_be_credited = invoice.find('PaymentDetails/Installment/AccountToBeCredited/AccountNumber')
account_to_be_debited = invoice.find('PaymentDetails/Installment/AccountToBeDebited/AccountNumber')
acc_number = (account_to_be_debited and account_to_be_debited.text or account_to_be_credited and account_to_be_credited.text)
else:
acc_number = False
res = {
Expand Down

0 comments on commit 416de0f

Please sign in to comment.