From 5431e20629efdd598723f08aa82ca9b0fed30b95 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Thu, 11 Oct 2018 09:05:38 +0200 Subject: [PATCH] =?UTF-8?q?Hotfix=20:=20recup=C3=A9ration=20de=20l'user=20?= =?UTF-8?q?lors=20d'une=20cotisation=20en=20post=5Fsave=20de=20Vente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cotisations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/models.py b/cotisations/models.py index ed98094d..3e5855f3 100644 --- a/cotisations/models.py +++ b/cotisations/models.py @@ -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)