mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 22:55:38 +00:00
[IMP] : pre-commit stuff
This commit is contained in:
@@ -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"})
|
||||
|
Reference in New Issue
Block a user