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

Merge branch 'hotfix_purchase_post_save' into 'dev'

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

See merge request federez/re2o!327
This commit is contained in:
chirac 2018-10-11 15:14:20 +02:00
commit 3c14729cc0

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)