diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 65c61428..f18b5f99 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -4223,6 +4223,8 @@ class Facture(BaseClasseCrans): def delete(self, comment=''): """Suppression de la facture""" + if self.controle(): + raise EnvironmentError(u"La facture a déjà été controlée") self.__proprietaire = None self._delete(self.dn, comment)