fix : correction du retour sur la liste des réceptions + suppression de la redirection après enregistrement

This commit is contained in:
2026-02-25 09:28:55 +01:00
parent 0a887a9347
commit 586f122e3b
2 changed files with 10 additions and 2 deletions

View File

@@ -220,9 +220,15 @@
<tr class="border-bottom">
<td>
{% if reception.receptionType and reception.receptionType.code == 'BOVINS' %}
<strong>
Type de bovins
</strong>
{% else %}
<strong>
Type de marchandises
</strong>
{% endif %}
<br><br>
<div class="bigtable-notes">
@@ -263,6 +269,9 @@
<p>Aucun dépôt de granulés renseigné.</p>
{% endfor %}
{% else %}
{% if reception.merchandiseType %}
<p><strong>{{ reception.merchandiseType.label }}</strong></p>
{% endif %}
{% set buildingLabels = [] %}
{% for building in reception.buildings|default([]) %}
{% set buildingLabels = buildingLabels|merge([building.label]) %}