Pas de ticket si pas de compte crans
This commit is contained in:
parent
16777e3914
commit
cf76003c1f
1 changed files with 7 additions and 6 deletions
|
@ -590,12 +590,13 @@ class Dialog(proprio.Dialog):
|
||||||
if self.confirm_item(adherent, title="Créer l'adhérent suivant ?"):
|
if self.confirm_item(adherent, title="Créer l'adhérent suivant ?"):
|
||||||
adherent.validate_changes()
|
adherent.validate_changes()
|
||||||
adherent.create()
|
adherent.create()
|
||||||
if self.dialog.yesno("Imprimer un ticket avec un mot de passe attribué automatiquement ?",
|
if make_compte_crans:
|
||||||
title="Impression de ticket pour %s %s" % (adherent.get('prenom', [''])[0], adherent["nom"][0]),
|
if self.dialog.yesno("Imprimer un ticket avec un mot de passe attribué automatiquement ?",
|
||||||
timeout=self.timeout
|
title="Impression de ticket pour %s %s" % (adherent.get('prenom', [''])[0], adherent["nom"][0]),
|
||||||
) == self.dialog.DIALOG_OK:
|
timeout=self.timeout
|
||||||
subprocess.call(['/usr/scripts/cransticket/dump_creds.py', '--forced', '--pass', 'aid=%s' % adherent['aid'][0]])
|
) == self.dialog.DIALOG_OK:
|
||||||
self.display_item(adherent, "Impression du ticket en cours ...")
|
subprocess.call(['/usr/scripts/cransticket/dump_creds.py', '--forced', '--pass', 'aid=%s' % adherent['aid'][0]])
|
||||||
|
self.display_item(adherent, "Impression du ticket en cours ...")
|
||||||
else:
|
else:
|
||||||
adherent = None
|
adherent = None
|
||||||
return adherent
|
return adherent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue