summaryrefslogtreecommitdiff
path: root/ishtar/templates/sheet_operation.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/templates/sheet_operation.html')
-rw-r--r--ishtar/templates/sheet_operation.html8
1 files changed, 2 insertions, 6 deletions
diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html
index b4c251197..db9d22cee 100644
--- a/ishtar/templates/sheet_operation.html
+++ b/ishtar/templates/sheet_operation.html
@@ -129,7 +129,7 @@
<th class='link'>&nbsp;</th>
</tr>
{% for parcel in item.parcels.all %}
- {% for context_record in parcel.context_record.all %}
+ {% for context_record in item.context_record.all %}
<tr>
<td>{{ context_record.label }}</td>
<td class='string'>{{context_record.unit}}</td>
@@ -159,8 +159,7 @@
<th>{% trans "Parcel" %}</th>
<th class='link'>&nbsp;</th>
</tr>
- {% for parcel in item.parcels.all %}
- {% for context_record in parcel.context_record.all %}
+ {% for context_record in item.context_record.all %}
{% for find in context_record.base_items.all %}
<tr>
<td>{{ find.full_label }}</td>
@@ -185,9 +184,6 @@
{% empty %}
<tr><td colspan="9" class='no_items'>{% trans "No find associated to parcel" %} {{parcel.short_label}} {% trans "(no context record)" %}</td></tr>
{% endfor %}
- {% empty %}
- <tr><td colspan="9" class='no_items'>{% trans "No find associated to this operation (no parcel)" %}</td></tr>
- {% endfor %}
</table>