mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-15 14:40:58 +00:00
Add build status label to part detail
This commit is contained in:
1 parent
6fd0380196
commit
5207b2ba21
1 file changed
+2
-1
@@ -38,7 +38,7 @@ from InvenTree.views import AjaxView, AjaxCreateView, AjaxUpdateView, AjaxDelete
|
|||||||
from InvenTree.views import QRCodeView
|
from InvenTree.views import QRCodeView
|
||||||
|
|
||||||
from InvenTree.helpers import DownloadFile, str2bool
|
from InvenTree.helpers import DownloadFile, str2bool
|
||||||
from InvenTree.status_codes import OrderStatus
|
from InvenTree.status_codes import OrderStatus, BuildStatus
|
||||||
|
|
||||||
|
|
||||||
class PartIndex(ListView):
|
class PartIndex(ListView):
|
||||||
@@ -593,6 +593,7 @@ class PartDetail(DetailView):
|
|||||||
context['disabled'] = not part.active
|
context['disabled'] = not part.active
|
||||||
|
|
||||||
context['OrderStatus'] = OrderStatus
|
context['OrderStatus'] = OrderStatus
|
||||||
|
context['BuildStatus'] = BuildStatus
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user