mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1586 from nwns/feature/show_poline_items_in_admin
feat(admin): Show the line items on the PO on the Admin Site
This commit is contained in:
commit
980befe0fa
@ -13,6 +13,10 @@ from .models import SalesOrder, SalesOrderLineItem
|
||||
from .models import SalesOrderAllocation
|
||||
|
||||
|
||||
class PurchaseOrderLineItemInlineAdmin(admin.StackedInline):
|
||||
model = PurchaseOrderLineItem
|
||||
|
||||
|
||||
class PurchaseOrderAdmin(ImportExportModelAdmin):
|
||||
|
||||
list_display = (
|
||||
@ -29,6 +33,10 @@ class PurchaseOrderAdmin(ImportExportModelAdmin):
|
||||
'description',
|
||||
]
|
||||
|
||||
inlines = [
|
||||
PurchaseOrderLineItemInlineAdmin
|
||||
]
|
||||
|
||||
|
||||
class SalesOrderAdmin(ImportExportModelAdmin):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user