Projet

Général

Profil

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

Serghei Mihai, 05 juillet 2019 12:13

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
        },
73 78
        "address": {
74 79
            "description": "association address",
75 80
            "type": "string",
......
329 334
                 'NumeroSiretFin': post_data['nic'],
330 335
                 # can be D (débiteur), F (fournisseur) or * (both)
331 336
                 'Type': post_data.get('type', '*'),
332
                 'StatutTiers': 'PROPOSE',
337
                 # can be "PROPOSE", "VALIDE", "REFUSE", "BLOQUE", "A COMPLETER"
338
                 'StatutTiers': post_data.get('status', 'PROPOSE'),
333 339
                 'AdresseIsAdresseDeFacturation': True,
334 340
                 'AdresseIsAdresseDeCommande': True,
335 341
                 'AdresseTitre': 'AdressePrincipale',
336
-