mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Added BOM button to bottom of Bill of Materials table on part detail view
This commit is contained in:
		@@ -286,6 +286,12 @@
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class='panel-content'>
 | 
			
		||||
        {% include "part/bom.html" with part=part %}
 | 
			
		||||
         {% if roles.part.change %}
 | 
			
		||||
                <button class='btn btn-success' type='button' title='{% trans "New BOM Item" %}' id='bom-item-new-footer'>
 | 
			
		||||
                    <span class='fas fa-plus-circle'></span> {% trans "Add BOM Item" %}
 | 
			
		||||
                </button>
 | 
			
		||||
             <br/>
 | 
			
		||||
         {% endif %}
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@@ -611,7 +617,7 @@
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        $("#bom-item-new").click(function () {
 | 
			
		||||
        $("[id^=bom-item-new]").click(function () {
 | 
			
		||||
 | 
			
		||||
            var fields = bomItemFields();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user