Merge pull request #2932 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
commit 943dc7886e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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