Pas de ticket si pas de compte crans

This commit is contained in:
Gabriel Detraz 2015-12-03 00:36:29 +01:00
parent 16777e3914
commit cf76003c1f

View file

@ -590,6 +590,7 @@ class Dialog(proprio.Dialog):
if self.confirm_item(adherent, title="Créer l'adhérent suivant ?"):
adherent.validate_changes()
adherent.create()
if make_compte_crans:
if self.dialog.yesno("Imprimer un ticket avec un mot de passe attribué automatiquement ?",
title="Impression de ticket pour %s %s" % (adherent.get('prenom', [''])[0], adherent["nom"][0]),
timeout=self.timeout