[MIG] account_statement_import_camt54: Migration to 15.0

This commit is contained in:
Maksym Yankin
2022-01-26 15:34:13 +02:00
committed by sonhd91
parent 15f1f015d6
commit 61c898b569
9 changed files with 24 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ class CamtParser(models.AbstractModel):
start = int(start) - 1 # count from 1 instead of 0
size = int(size)
end = start + size
except ValueError:
except ValueError as err:
raise exceptions.UserError(
_(
"Config parameter `isr_partner_ref` is wrong.\n"
@@ -43,7 +43,7 @@ class CamtParser(models.AbstractModel):
"`i` and `n` must be integers.\n"
'e.g. "13,6"'
)
)
) from err
return isr[start:end].lstrip("0")
def parse_transaction_details(self, ns, node, transaction):