8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 00:13:12 +00:00

Merge branch 'fix_cotis' into 'master'

Fix bug sur cotisation

See merge request federez/re2o!122
This commit is contained in:
moamoak 2018-04-11 11:35:37 +02:00
commit 16162ff9bb

View file

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