mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Adds function to provide simplified barcode for stock location
This commit is contained in:
parent
1368b06afa
commit
b6cd2c215a
@ -64,6 +64,13 @@ class StockLocation(InvenTreeTree):
|
|||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def barcode(self):
|
||||||
|
"""
|
||||||
|
Brief payload data (e.g. for labels)
|
||||||
|
"""
|
||||||
|
return self.format_barcode(brief=True)
|
||||||
|
|
||||||
def get_stock_items(self, cascade=True):
|
def get_stock_items(self, cascade=True):
|
||||||
""" Return a queryset for all stock items under this category.
|
""" Return a queryset for all stock items under this category.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user