From 3ae63e74a0e86004b4e34da2e9a959eaac52c342 Mon Sep 17 00:00:00 2001 From: chove Date: Sun, 11 Jun 2006 22:51:50 +0200 Subject: [PATCH] on supprime les factures avant le proprio darcs-hash:20060611205150-4ec08-3de304c832755ce52742b4db3fec70db5b3fd333.gz --- gestion/ldap_crans.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index c5ed2a8f..8a4065a8 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1529,6 +1529,10 @@ class BaseProprietaire(BaseClasseCrans): # Destruction machines m.delete(comment) + for f in self.factures(): + # Destruction factures + f.delete(comment) + self._delete(self.dn, comment) try: