mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added global setting to enable manufacturer parts
Created SourceItem model Updated templates
This commit is contained in:
@ -130,7 +130,7 @@ class ManufacturerPartList(generics.ListCreateAPIView):
|
||||
params = self.request.query_params
|
||||
|
||||
# Filter by manufacturer
|
||||
manufacturer = params.get('manufacturer', None)
|
||||
manufacturer = params.get('company', None)
|
||||
|
||||
if manufacturer is not None:
|
||||
queryset = queryset.filter(manufacturer=manufacturer)
|
||||
|
Reference in New Issue
Block a user