8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +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: if purchase.type_cotisation:
purchase.create_cotis() purchase.create_cotis()
purchase.cotisation.save() purchase.cotisation.save()
user = purchase.facture.user user = purchase.facture.facture.user
user.set_active() user.set_active()
user.ldap_sync(base=True, access_refresh=True, mac_refresh=False) user.ldap_sync(base=True, access_refresh=True, mac_refresh=False)