From d559d92f589b5b342a657047b5c16481367133b3 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 10 Mar 2021 16:26:20 +1100 Subject: [PATCH] Display responsible owner for salesorder and purchaseorder --- InvenTree/order/forms.py | 4 +++- InvenTree/order/templates/order/order_base.html | 7 +++++++ InvenTree/order/templates/order/sales_order_base.html | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/InvenTree/order/forms.py b/InvenTree/order/forms.py index 808ab7ed29..b5edec386a 100644 --- a/InvenTree/order/forms.py +++ b/InvenTree/order/forms.py @@ -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', ] diff --git a/InvenTree/order/templates/order/order_base.html b/InvenTree/order/templates/order/order_base.html index ed90e1f049..b4761f6a69 100644 --- a/InvenTree/order/templates/order/order_base.html +++ b/InvenTree/order/templates/order/order_base.html @@ -129,6 +129,13 @@ src="{% static 'img/blank_image.png' %}" {{ order.complete_date }}{{ order.received_by }} {% endif %} + {% if order.responsible %} + + + {% trans "Responsible" %} + {{ order.responsible }} + + {% endif %} {% endblock %} diff --git a/InvenTree/order/templates/order/sales_order_base.html b/InvenTree/order/templates/order/sales_order_base.html index d671154529..17db37927c 100644 --- a/InvenTree/order/templates/order/sales_order_base.html +++ b/InvenTree/order/templates/order/sales_order_base.html @@ -129,6 +129,13 @@ src="{% static 'img/blank_image.png' %}" {{ order.complete_date }}{{ order.received_by }} {% endif %} + {% if order.responsible %} + + + {% trans "Responsible" %} + {{ order.responsible }} + + {% endif %} {% endblock %}