mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Add 'reference' to API serializer
This commit is contained in:
		@@ -35,13 +35,19 @@ function loadBuildTable(table, options) {
 | 
			
		||||
                switchable: false,
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                field: 'title',
 | 
			
		||||
                field: 'reference',
 | 
			
		||||
                title: '{% trans "Build" %}',
 | 
			
		||||
                sortable: true,
 | 
			
		||||
                switchable: false,
 | 
			
		||||
                formatter: function(value, row, index, field) {
 | 
			
		||||
                    return renderLink(value, '/build/' + row.pk + '/');
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                field: 'title',
 | 
			
		||||
                title: '{% trans "Description" %}',
 | 
			
		||||
                sortable: true,
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                field: 'part',
 | 
			
		||||
                title: '{% trans "Part" %}',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user