mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Add context data to StockItemLabel model
This commit is contained in:
		@@ -302,6 +302,13 @@ class StockItem(MPTTModel):
 | 
			
		||||
            }
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    def format_short_barcode(self):
 | 
			
		||||
        """
 | 
			
		||||
        Return a short barcode
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||
        return "stockid={pk}".format(pk=self.pk)
 | 
			
		||||
 | 
			
		||||
    uid = models.CharField(blank=True, max_length=128, help_text=("Unique identifier field"))
 | 
			
		||||
 | 
			
		||||
    parent = TreeForeignKey(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user