From 5af49d90f6ed228ba934cf3ae4cb937d3b83d725 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 23 Dec 2022 11:43:56 +0100 Subject: [PATCH] [IMP] : pre-commit stuff --- account_ebics/models/ebics_config.py | 2 +- account_ebics/models/ebics_file.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_ebics/models/ebics_config.py b/account_ebics/models/ebics_config.py index 4cde65c..e7c95c5 100644 --- a/account_ebics/models/ebics_config.py +++ b/account_ebics/models/ebics_config.py @@ -208,7 +208,7 @@ class EbicsConfig(models.Model): for ebics_config in self: if ebics_config.state == "active": raise UserError(_("You cannot remove active EBICS configurations.")) - return super(EbicsConfig, self).unlink() + return super().unlink() def set_to_draft(self): return self.write({"state": "draft"}) diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index 76cc41c..8fd715b 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -84,7 +84,7 @@ class EbicsFile(models.Model): ff_methods[ff]["unlink"](ebics_file) # remove bank statements ebics_file.bank_statement_ids.unlink() - return super(EbicsFile, self).unlink() + return super().unlink() def set_to_draft(self): return self.write({"state": "draft"})