Adds function to provide simplified barcode for stock location

This commit is contained in:
Oliver Walters 2021-01-11 21:32:31 +11:00
parent 1368b06afa
commit b6cd2c215a

View File

@ -64,6 +64,13 @@ class StockLocation(InvenTreeTree):
**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):
""" Return a queryset for all stock items under this category.