mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 12:42:04 +00:00
bugfix
This commit is contained in:
parent
dc4b95ad35
commit
2382d066ae
@ -90,7 +90,7 @@ class EbicsFile(models.Model):
|
|||||||
ff = ebics_file.format_id.download_process_method
|
ff = ebics_file.format_id.download_process_method
|
||||||
if ff in ff_methods:
|
if ff in ff_methods:
|
||||||
if ff_methods[ff].get("unlink"):
|
if ff_methods[ff].get("unlink"):
|
||||||
ff_methods[ff]["unlink"](ebics_file)
|
ff_methods[ff]["unlink"]()
|
||||||
# remove bank statements
|
# remove bank statements
|
||||||
ebics_file.bank_statement_ids.unlink()
|
ebics_file.bank_statement_ids.unlink()
|
||||||
return super().unlink()
|
return super().unlink()
|
||||||
@ -445,8 +445,10 @@ class EbicsFile(models.Model):
|
|||||||
)
|
)
|
||||||
if not currency:
|
if not currency:
|
||||||
message = msg_hdr.format(_("Error"))
|
message = msg_hdr.format(_("Error"))
|
||||||
message += _("Currency %(cc) not found.", cc=currency_code)
|
message += _("Currency %(cc)s not found.", cc=currency_code)
|
||||||
res["notifications"] = {"type": "error", "message": message}
|
res["notifications"].append(
|
||||||
|
{"type": "error", "message": message}
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
journal = self.env["account.journal"].search(
|
journal = self.env["account.journal"].search(
|
||||||
[
|
[
|
||||||
@ -465,7 +467,7 @@ class EbicsFile(models.Model):
|
|||||||
message = msg_hdr.format(_("Error"))
|
message = msg_hdr.format(_("Error"))
|
||||||
message += _(
|
message += _(
|
||||||
"No financial journal found for Account Number %(nbr)s, "
|
"No financial journal found for Account Number %(nbr)s, "
|
||||||
"Currency %(cc)",
|
"Currency %(cc)s",
|
||||||
nbr=acc_number,
|
nbr=acc_number,
|
||||||
cc=currency_code,
|
cc=currency_code,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user