Skip to content
Extraits de code Groupes Projets
Valider ede0cfd7 rédigé par jordan's avatar jordan
Parcourir les fichiers

[fix] reorder function to use specific adhesion process to create lm if needed

parent 9b558629
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -459,6 +459,10 @@ class ScopPartner(models.Model): ...@@ -459,6 +459,10 @@ class ScopPartner(models.Model):
- create invoice adhesion - create invoice adhesion
- send email to coop with letter and invoice adhesion - send email to coop with letter and invoice adhesion
""" """
# Important to call get_lm_adhesion() first so we can use specific
# adhesion process to create lm if needed instead of process define
# in cgscop_liste_ministere module
lm_adhesion = self.get_lm_adhesion()
res = super(ScopPartner, self).scop_valid_cg() res = super(ScopPartner, self).scop_valid_cg()
# Affectation to DIRECCTE # Affectation to DIRECCTE
...@@ -471,7 +475,6 @@ class ScopPartner(models.Model): ...@@ -471,7 +475,6 @@ class ScopPartner(models.Model):
# TODO : check pour fede CAE si coop is CAE ? # TODO : check pour fede CAE si coop is CAE ?
# Create invoice adhésion # Create invoice adhésion
lm_adhesion = self.get_lm_adhesion()
self.create_invoice_adhesion(lm_adhesion) self.create_invoice_adhesion(lm_adhesion)
# Generate and send courrier adhésion # Generate and send courrier adhésion
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter