2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-15 08:48:11 +00:00

Add forms/views for manually assigning a stock item to a customer

This commit is contained in:
Oliver Walters
2020-06-04 19:45:41 +10:00
parent d907136264
commit 80019a3ed8
7 changed files with 139 additions and 26 deletions

View File

@@ -34,6 +34,18 @@ class EditStockItemAttachmentForm(HelperForm):
]
class AssignStockItemToCustomerForm(HelperForm):
"""
Form for manually assigning a StockItem to a Customer
"""
class Meta:
model = StockItem
fields = [
'customer',
]
class EditStockItemTestResultForm(HelperForm):
"""
Form for creating / editing a StockItemTestResult object.