2019-06-04 12:19:04 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import PurchaseOrder, PurchaseOrderLineItem
|
|
|
|
|
|
|
|
|
|
|
|
class PurchaseOrderAdmin(admin.ModelAdmin):
|
|
|
|
|
|
|
|
list_display = (
|
|
|
|
'reference',
|
2019-06-04 12:26:19 +00:00
|
|
|
'supplier',
|
2019-06-04 13:09:51 +00:00
|
|
|
'status',
|
2019-06-04 12:19:04 +00:00
|
|
|
'description',
|
|
|
|
'creation_date'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
class PurchaseOrderLineItemAdmin(admin.ModelAdmin):
|
|
|
|
|
|
|
|
list_display = (
|
|
|
|
'order',
|
|
|
|
'quantity',
|
|
|
|
'reference'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(PurchaseOrder, PurchaseOrderAdmin)
|
|
|
|
admin.site.register(PurchaseOrderLineItem, PurchaseOrderLineItemAdmin)
|