mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
feat(admin): Show the line items on the PO on the Admin Site
This commit is contained in:
parent
a1fa3315b1
commit
30a2194fe1
@ -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