mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 12:42:04 +00:00
[IMP] : pre-commit stuff
This commit is contained in:
parent
8747e6607d
commit
71d7eacd34
@ -208,7 +208,7 @@ class EbicsConfig(models.Model):
|
|||||||
for ebics_config in self:
|
for ebics_config in self:
|
||||||
if ebics_config.state == "active":
|
if ebics_config.state == "active":
|
||||||
raise UserError(_("You cannot remove active EBICS configurations."))
|
raise UserError(_("You cannot remove active EBICS configurations."))
|
||||||
return super(EbicsConfig, self).unlink()
|
return super().unlink()
|
||||||
|
|
||||||
def set_to_draft(self):
|
def set_to_draft(self):
|
||||||
return self.write({"state": "draft"})
|
return self.write({"state": "draft"})
|
||||||
|
@ -84,7 +84,7 @@ class EbicsFile(models.Model):
|
|||||||
ff_methods[ff]["unlink"](ebics_file)
|
ff_methods[ff]["unlink"](ebics_file)
|
||||||
# remove bank statements
|
# remove bank statements
|
||||||
ebics_file.bank_statement_ids.unlink()
|
ebics_file.bank_statement_ids.unlink()
|
||||||
return super(EbicsFile, self).unlink()
|
return super().unlink()
|
||||||
|
|
||||||
def set_to_draft(self):
|
def set_to_draft(self):
|
||||||
return self.write({"state": "draft"})
|
return self.write({"state": "draft"})
|
||||||
|
Loading…
Reference in New Issue
Block a user