Projet

Général

Profil

0001-astregs-allow-custom-association-status-on-creation-.patch

Serghei Mihai, 08 juillet 2019 10:22

Télécharger (1,46 ko)

Voir les différences:

Subject: [PATCH] astregs: allow custom association status on creation (#34557)

 passerelle/apps/astregs/models.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
passerelle/apps/astregs/models.py
70 70
            "type": "string",
71 71
            "required": False
72 72
        },
73
        "status": {
74
            "description": "association status",
75
            "type": "string",
76
            "required": False,
77
            "enum": ["PROPOSE", "VALIDE", "REFUSE", "BLOQUE", "A COMPLETER"]
78
        },
73 79
        "address": {
74 80
            "description": "association address",
75 81
            "type": "string",
......
329 335
                 'NumeroSiretFin': post_data['nic'],
330 336
                 # can be D (débiteur), F (fournisseur) or * (both)
331 337
                 'Type': post_data.get('type', '*'),
332
                 'StatutTiers': 'PROPOSE',
338
                 'StatutTiers': post_data.get('status', 'PROPOSE'),
333 339
                 'AdresseIsAdresseDeFacturation': True,
334 340
                 'AdresseIsAdresseDeCommande': True,
335 341
                 'AdresseTitre': 'AdressePrincipale',
336
-