diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index c0ab91a41f..c97090e4f6 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -941,7 +941,7 @@ class SalesOrderShipmentCompleteSerializer(serializers.ModelSerializer): shipment.complete_shipment(user, tracking_number=tracking_number) -class SOShipmentAllocationItemSerializer(serializers.Serializer): +class SalesOrderShipmentAllocationItemSerializer(serializers.Serializer): """ A serializer for allocating a single stock-item against a SalesOrder shipment """ @@ -1233,7 +1233,7 @@ class SalesOrderShipmentAllocationSerializer(serializers.Serializer): 'shipment', ] - items = SOShipmentAllocationItemSerializer(many=True) + items = SalesOrderShipmentAllocationItemSerializer(many=True) shipment = serializers.PrimaryKeyRelatedField( queryset=order.models.SalesOrderShipment.objects.all(), diff --git a/InvenTree/order/test_views.py b/InvenTree/order/test_views.py index f636d91fb9..a0445e3dd6 100644 --- a/InvenTree/order/test_views.py +++ b/InvenTree/order/test_views.py @@ -53,7 +53,7 @@ class OrderListTest(OrderViewTestCase): self.assertEqual(response.status_code, 200) -class POTests(OrderViewTestCase): +class PurchaseOrderTests(OrderViewTestCase): """ Tests for PurchaseOrder views """ def test_detail_view(self): diff --git a/InvenTree/report/tests.py b/InvenTree/report/tests.py index f99128999c..a40990b527 100644 --- a/InvenTree/report/tests.py +++ b/InvenTree/report/tests.py @@ -227,7 +227,7 @@ class BOMReportTest(ReportTest): print_url = 'api-bom-report-print' -class POReportTest(ReportTest): +class PurchaseOrderReportTest(ReportTest): model = report_models.PurchaseOrderReport @@ -236,7 +236,7 @@ class POReportTest(ReportTest): print_url = 'api-po-report-print' -class SOReportTest(ReportTest): +class SalesOrderReportTest(ReportTest): model = report_models.SalesOrderReport