mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Fixes for stock location forms
This commit is contained in:
		| @@ -111,12 +111,17 @@ function stockLocationFields(options={}) { | ||||
|         }, | ||||
|         name: {}, | ||||
|         description: {}, | ||||
|         owner: {}, | ||||
|     }; | ||||
|  | ||||
|     if (options.parent) { | ||||
|         fields.parent.value = options.parent; | ||||
|     } | ||||
|  | ||||
|     if (!global_settings.STOCK_OWNERSHIP_CONTROL) { | ||||
|         delete fields['owner']; | ||||
|     } | ||||
|  | ||||
|     return fields; | ||||
| } | ||||
|  | ||||
| @@ -130,6 +135,8 @@ function editStockLocation(pk, options={}) { | ||||
|  | ||||
|     options.fields = stockLocationFields(options); | ||||
|  | ||||
|     options.title = '{% trans "Edit Stock Location" %}'; | ||||
|  | ||||
|     constructForm(url, options); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user