From dda8e116d6224c532a3d8c4eafa138b9535a4ce7 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 8 Oct 2014 18:09:03 +0200 Subject: [PATCH] =?UTF-8?q?emp=C3=AAche=20la=20suppression=20de=20factures?= =?UTF-8?q?=20contr=C3=B4l=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/ldap_crans.py | 2 ++ 1 file changed, 2 insertions(+) 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)