Display responsible owner for salesorder and purchaseorder

This commit is contained in:
Oliver Walters 2021-03-10 16:26:20 +11:00
parent 39d44ce32f
commit d559d92f58
3 changed files with 17 additions and 1 deletions

View File

@ -116,6 +116,7 @@ class EditPurchaseOrderForm(HelperForm):
'description',
'target_date',
'link',
'responsible',
]
@ -148,7 +149,8 @@ class EditSalesOrderForm(HelperForm):
'customer_reference',
'description',
'target_date',
'link'
'link',
'responsible',
]

View File

@ -129,6 +129,13 @@ src="{% static 'img/blank_image.png' %}"
<td>{{ order.complete_date }}<span class='badge'>{{ order.received_by }}</span></td>
</tr>
{% endif %}
{% if order.responsible %}
<tr>
<td><span class='fas fa-users'></span></td>
<td>{% trans "Responsible" %}</td>
<td>{{ order.responsible }}</td>
</tr>
{% endif %}
</table>
{% endblock %}

View File

@ -129,6 +129,13 @@ src="{% static 'img/blank_image.png' %}"
<td>{{ order.complete_date }}<span class='badge'>{{ order.received_by }}</span></td>
</tr>
{% endif %}
{% if order.responsible %}
<tr>
<td><span class='fas fa-users'></span></td>
<td>{% trans "Responsible" %}</td>
<td>{{ order.responsible }}</td>
</tr>
{% endif %}
</table>
{% endblock %}