diff --git a/InvenTree/InvenTree/status_codes.py b/InvenTree/InvenTree/status_codes.py index b7b50a58f7..f772943ef0 100644 --- a/InvenTree/InvenTree/status_codes.py +++ b/InvenTree/InvenTree/status_codes.py @@ -10,7 +10,7 @@ class StatusCode: @classmethod def label(cls, value): """ Return the status code label associated with the provided value """ - return cls.options.get(value, '') + return cls.options.get(value, value) class OrderStatus(StatusCode): diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 6d924361a8..29b5c5d6bb 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -18,6 +18,7 @@ from InvenTree.views import AjaxView from InvenTree.views import AjaxUpdateView, AjaxDeleteView, AjaxCreateView from InvenTree.views import QRCodeView +from InvenTree.status_codes import StockStatus from InvenTree.helpers import str2bool, DownloadFile, GetExportFormats from InvenTree.helpers import ExtractSerialNumbers from datetime import datetime @@ -272,7 +273,7 @@ class StockExport(AjaxView): line.append(item.quantity) line.append(item.batch) line.append(item.serial) - line.append(item.status) + line.append(StockStatus.label(item.status)) line.append(item.notes) line.append(item.review_needed) line.append(item.updated)