mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 11:10:54 +00:00
Add metadata endpoints for SalesOrder and PurchaseOrder models
This commit is contained in:
@ -1384,7 +1384,7 @@ class LocationMetadata(generics.RetrieveUpdateAPIView):
|
||||
|
||||
def get_serializer(self, *args, **kwargs):
|
||||
return MetadataSerializer(StockLocation, *args, **kwargs)
|
||||
|
||||
|
||||
queryset = StockLocation.objects.all()
|
||||
|
||||
|
||||
@ -1412,8 +1412,7 @@ stock_api_urls = [
|
||||
|
||||
re_path(r'^.*$', LocationDetail.as_view(), name='api-location-detail'),
|
||||
])),
|
||||
|
||||
|
||||
|
||||
re_path(r'^.*$', StockLocationList.as_view(), name='api-location-list'),
|
||||
])),
|
||||
|
||||
|
Reference in New Issue
Block a user