diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index 22faccf380..1645817b20 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -380,6 +380,11 @@ class PurchaseOrder(Order): trigger_event('purchaseorder.completed', id=self.pk) + @property + def is_pending(self): + """Return True if the PurchaseOrder is 'pending'""" + return self.status == PurchaseOrderStatus.PENDING + @property def is_overdue(self): """Returns True if this PurchaseOrder is "overdue". diff --git a/InvenTree/order/templates/order/order_base.html b/InvenTree/order/templates/order/order_base.html index 5ffb6bcd7e..057d53aad1 100644 --- a/InvenTree/order/templates/order/order_base.html +++ b/InvenTree/order/templates/order/order_base.html @@ -58,8 +58,8 @@ {% if order.status == PurchaseOrderStatus.PENDING %} - {% elif order.status == PurchaseOrderStatus.PLACED %}