[IMP] : pre-commit stuff

This commit is contained in:
Luc De Meyer
2022-12-23 11:43:56 +01:00
parent 9761c3fc0a
commit e5652af883
2 changed files with 2 additions and 2 deletions

View File

@@ -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"})