mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Logic fix for editing stock item creation form
This commit is contained in:
		| @@ -1505,8 +1505,10 @@ class StockItemCreate(AjaxCreateView): | ||||
|             # form.fields['part'].widget = HiddenInput() | ||||
|  | ||||
|             # Trackable parts get special consideration: | ||||
|             form.fields['delete_on_deplete'].disabled = not part.trackable | ||||
|             form.fields['serial_numbers'].disabled = not part.trackable | ||||
|             if part.trackable: | ||||
|                 form.fields['delete_on_deplete'].disabled = True | ||||
|             else: | ||||
|                 form.fields['serial_numbers'].disabled = True | ||||
|  | ||||
|             # If the part is NOT purchaseable, hide the supplier_part field | ||||
|             if not part.purchaseable: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user