2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-23 13:16:30 +00:00

Merge pull request from matmair/so_fix_clean

Use full names consistently
This commit is contained in:
Oliver
2022-05-05 23:01:33 +10:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

@@ -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(),

@@ -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):

@@ -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