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:
@@ -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 """
|
||||
|
||||
|
Reference in New Issue
Block a user