mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
Flake fixes
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from InvenTree import plugins as InvenTreePlugins
|
||||
from barcode import plugins as BarcodePlugins
|
||||
|
||||
from stock.models import StockItem
|
||||
from stock.serializers import StockItemSerializer, LocationSerializer
|
||||
from part.serializers import PartSerializer
|
||||
|
||||
@ -70,7 +70,6 @@ class BarcodePlugin:
|
||||
serializer = StockItemSerializer(item, part_detail=True, location_detail=True, supplier_part_detail=True)
|
||||
return serializer.data
|
||||
|
||||
|
||||
def getStockLocation(self):
|
||||
"""
|
||||
Attempt to retrieve a StockLocation associated with this barcode.
|
||||
@ -93,7 +92,7 @@ class BarcodePlugin:
|
||||
Default implementation returns None
|
||||
"""
|
||||
|
||||
return None
|
||||
return None
|
||||
|
||||
def renderPart(self, part):
|
||||
"""
|
||||
@ -145,4 +144,4 @@ def load_barcode_plugins(debug=False):
|
||||
else:
|
||||
print("No barcode plugins found")
|
||||
|
||||
return plugins
|
||||
return plugins
|
||||
|
Reference in New Issue
Block a user