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:
Oliver 2021-05-15 07:50:53 +10:00 committed by GitHub
commit 980befe0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):