8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

Fix bug sur cotisation

This commit is contained in:
Gabriel Detraz 2018-04-11 09:30:46 +00:00 committed by Maël Kervella
parent e80c50ffe3
commit 25cd61ddca

View file

@ -394,7 +394,7 @@ def vente_post_save(sender, **kwargs):
LDAP user when a purchase has been saved.
"""
purchase = kwargs['instance']
if hasattr(vente, 'cotisation'):
if hasattr(purchase, 'cotisation'):
purchase.cotisation.vente = purchase
purchase.cotisation.save()
if purchase.type_cotisation: