-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OCCTAX] champs additionnal_fields obligatoire au niveau des schéma Marshmallow #2937
Labels
Comments
Oui quand on poste un relevé dans l'API d'Occtax, il faut permettre de ne pas poster le champs |
TheoLechemia
added a commit
that referenced
this issue
Mar 5, 2024
TheoLechemia
added a commit
that referenced
this issue
Mar 5, 2024
jacquesfize
pushed a commit
that referenced
this issue
Mar 8, 2024
jacquesfize
pushed a commit
that referenced
this issue
Mar 8, 2024
TheoLechemia
added a commit
that referenced
this issue
Mar 8, 2024
Fait dans 2.14.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Le champs
additionnal_fields
de la tablet_occurrences
est marqué commenot null
au niveau de la validation Marshmallow alors qu'il ne l'est pas dans le modèle ni dans la base.Il y a également un hook
post_dump
pour empecher un valeur NULL dans ce champs :Pour moi, c'est de l'historique : les trigger vers la synthese géraient mal la concatenation des champs additionnels aux niveau "relevé" / "occurrence" / "dénombrement". Actuellement ça ne pose plus de soucis
->
COALESCE(releve.additional_fields, '{}'::jsonb) || COALESCE(occurrence.additional_fields, '{}'::jsonb) || COALESCE(new_count.additional_fields, '{}'::jsonb)
Pour moi on peut enlever cette validation au niveau du schéma Marshmallow
The text was updated successfully, but these errors were encountered: