Commit f4885baf authored by Valentin Samir's avatar Valentin Samir

[objets] Pour supprimer un proprio, il faut supprimer ses factures filles

parent 08903ab1
......@@ -1094,6 +1094,9 @@ class proprio(CransLdapObject):
raise EnvironmentError("Vous n'avez pas le droit de supprimer %s." % self.dn)
for machine in self.machines():
machine.delete(comm, login)
for facture in self.factures():
with facture:
facture.delete(comm, login)
super(proprio, self).delete(comm, login)
def get_mail(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment