mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #2932 from matmair/so_fix_clean
Use full names consistently
This commit is contained in:
commit
943dc7886e
@ -941,7 +941,7 @@ class SalesOrderShipmentCompleteSerializer(serializers.ModelSerializer):
|
|||||||
shipment.complete_shipment(user, tracking_number=tracking_number)
|
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
|
A serializer for allocating a single stock-item against a SalesOrder shipment
|
||||||
"""
|
"""
|
||||||
@ -1233,7 +1233,7 @@ class SalesOrderShipmentAllocationSerializer(serializers.Serializer):
|
|||||||
'shipment',
|
'shipment',
|
||||||
]
|
]
|
||||||
|
|
||||||
items = SOShipmentAllocationItemSerializer(many=True)
|
items = SalesOrderShipmentAllocationItemSerializer(many=True)
|
||||||
|
|
||||||
shipment = serializers.PrimaryKeyRelatedField(
|
shipment = serializers.PrimaryKeyRelatedField(
|
||||||
queryset=order.models.SalesOrderShipment.objects.all(),
|
queryset=order.models.SalesOrderShipment.objects.all(),
|
||||||
|
@ -53,7 +53,7 @@ class OrderListTest(OrderViewTestCase):
|
|||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
|
||||||
class POTests(OrderViewTestCase):
|
class PurchaseOrderTests(OrderViewTestCase):
|
||||||
""" Tests for PurchaseOrder views """
|
""" Tests for PurchaseOrder views """
|
||||||
|
|
||||||
def test_detail_view(self):
|
def test_detail_view(self):
|
||||||
|
@ -227,7 +227,7 @@ class BOMReportTest(ReportTest):
|
|||||||
print_url = 'api-bom-report-print'
|
print_url = 'api-bom-report-print'
|
||||||
|
|
||||||
|
|
||||||
class POReportTest(ReportTest):
|
class PurchaseOrderReportTest(ReportTest):
|
||||||
|
|
||||||
model = report_models.PurchaseOrderReport
|
model = report_models.PurchaseOrderReport
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ class POReportTest(ReportTest):
|
|||||||
print_url = 'api-po-report-print'
|
print_url = 'api-po-report-print'
|
||||||
|
|
||||||
|
|
||||||
class SOReportTest(ReportTest):
|
class SalesOrderReportTest(ReportTest):
|
||||||
|
|
||||||
model = report_models.SalesOrderReport
|
model = report_models.SalesOrderReport
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user