mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 04:12:11 +00:00
Added barcode for Part object
This commit is contained in:
@@ -42,9 +42,9 @@ class StockLocation(InvenTreeTree):
|
||||
|
||||
return helpers.MakeBarcode(
|
||||
'StockLocation',
|
||||
self.id,
|
||||
reverse('api-location-detail', kwargs={'pk': self.id}),
|
||||
{
|
||||
'id': self.id,
|
||||
'name': self.name,
|
||||
}
|
||||
)
|
||||
@@ -153,9 +153,9 @@ class StockItem(models.Model):
|
||||
|
||||
return helpers.MakeBarcode(
|
||||
'StockItem',
|
||||
self.id,
|
||||
reverse('api-stock-detail', kwargs={'pk': self.id}),
|
||||
{
|
||||
'id': self.id,
|
||||
'part_id': self.part.id,
|
||||
'part_name': self.part.name
|
||||
}
|
||||
|
Reference in New Issue
Block a user