mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +00:00
Add functions to install and uninstall stock items
This commit is contained in:
1 parent
81ce284264
commit
df8d1fb32b
3 files changed
+64
-1
No files matched your search
@@ -774,6 +774,8 @@ class StockItemUninstall(AjaxView, FormMixin):
|
||||
|
||||
confirmed = str2bool(request.POST.get('confirm'))
|
||||
|
||||
note = request.POST.get('note', '')
|
||||
|
||||
location = request.POST.get('location', None)
|
||||
|
||||
if location:
|
||||
@@ -799,7 +801,7 @@ class StockItemUninstall(AjaxView, FormMixin):
|
||||
if valid:
|
||||
# Ok, now let's actually uninstall the stock items
|
||||
for item in self.stock_items:
|
||||
pass
|
||||
item.uninstallIntoLocation(location, request.user, note)
|
||||
|
||||
data['success'] = _('Uninstalled stock items')
|
||||
|
||||
|
||||
Reference in new issue
Block a user