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

Add button to delete a SalesOrderLineItem

This commit is contained in:
Oliver Walters
2020-04-22 22:36:55 +10:00
parent 26d1a25f31
commit 2a4e903785
6 changed files with 34 additions and 10 deletions

View File

@@ -1163,6 +1163,18 @@ class POLineItemDelete(AjaxDeleteView):
}
class SOLineItemDelete(AjaxDeleteView):
model = SalesOrderLineItem
ajax_form_title = _("Delete Line Item")
ajax_template_name = "order/so_lineitem_delete.html"
def get_data(self):
return {
'danger': _('Deleted line item'),
}
class SalesOrderAllocationCreate(AjaxCreateView):
""" View for creating a new SalesOrderAllocation """