8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Hotfix : recupération de l'user lors d'une cotisation en post_save de Vente

This commit is contained in:
Hugo LEVY-FALK 2018-10-11 09:05:38 +02:00 committed by chirac
parent da91394163
commit 5431e20629

View file

@ -478,7 +478,7 @@ def vente_post_save(**kwargs):
if purchase.type_cotisation:
purchase.create_cotis()
purchase.cotisation.save()
user = purchase.facture.user
user = purchase.facture.facture.user
user.set_active()
user.ldap_sync(base=True, access_refresh=True, mac_refresh=False)