diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index 7d26ce741d..f818667d0f 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -875,7 +875,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 """ @@ -1148,7 +1148,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 220c1688db..beb0f09265 100644 --- a/InvenTree/order/test_views.py +++ b/InvenTree/order/test_views.py @@ -59,7 +59,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