2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00
- Add StockHistoryCode to custom context
- Add simple form for editing stock item history
- Add tracking entry when stock status is changed
This commit is contained in:
Oliver Walters
2021-05-11 23:38:26 +10:00
parent 84bfffd5a7
commit 03a231bffb
11 changed files with 119 additions and 16 deletions

View File

@ -1212,6 +1212,16 @@ class StockAdjust(AjaxView, FormMixin):
return _("Deleted {n} stock items").format(n=count)
class StockItemEditStatus(AjaxUpdateView):
"""
View for editing stock item status field
"""
model = StockItem
form_class = StockForms.EditStockItemStatusForm
ajax_form_title = _('Edit Stock Item Status')
class StockItemEdit(AjaxUpdateView):
"""
View for editing details of a single StockItem