2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-09 20:21:24 +00:00

Add forms for editing and deleting a SalesOrderAllocation item

This commit is contained in:
Oliver Walters
2020-04-22 23:21:54 +10:00
parent 2a4e903785
commit 6112be2df0
6 changed files with 61 additions and 18 deletions

View File

@@ -1248,6 +1248,7 @@ class SalesOrderAllocationCreate(AjaxCreateView):
class SalesOrderAllocationEdit(AjaxUpdateView):
model = SalesOrderAllocation
form_class = order_forms.EditSalesOrderAllocationForm
ajax_form_title = _('Edit Allocation Quantity')
def get_form(self):
@@ -1258,3 +1259,9 @@ class SalesOrderAllocationEdit(AjaxUpdateView):
form.fields.pop('line')
return form
class SalesOrderAllocationDelete(AjaxDeleteView):
model = SalesOrderAllocation
ajax_form_title = _("Remove allocation")