diff --git a/intranet/modules/gestionFactures/main.py b/intranet/modules/gestionFactures/main.py index d0487a63..6c37b7c7 100644 --- a/intranet/modules/gestionFactures/main.py +++ b/intranet/modules/gestionFactures/main.py @@ -95,7 +95,10 @@ class main(ModuleBase): try: facture = {} facture['no'] = f.numero() - facture['adherent'] = f.proprietaire().mail() + proprio = f.proprietaire() + if proprio.objectClass == 'club': + proprio = proprio.responsable() + facture['adherent'] = proprio.mail() facture['montant'] = f.total() facture['payee'] = f.recuPaiement() facture['date'] = f.historique()[0].split(',')[0]