mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge branch 'customer_orders'
This commit is contained in:
commit
e8f9b31f44
@ -5,10 +5,10 @@ from .models import CustomerOrder, CustomerOrderLine
|
||||
|
||||
|
||||
class CustomerOrderAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
list_display = ('internal_ref',)
|
||||
|
||||
class CustomerOrderLineAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
list_display = ('customer_order', 'line_number')
|
||||
|
||||
|
||||
admin.site.register(CustomerOrder, CustomerOrderAdmin)
|
||||
|
@ -39,6 +39,9 @@ class CustomerOrder(models.Model):
|
||||
# Order notes
|
||||
notes = models.TextField(blank=True, default="", help_text="Order notes")
|
||||
|
||||
def __str__(self):
|
||||
return "OrderRef {internal_ref}".format(internal_ref=self.internal_ref)
|
||||
|
||||
|
||||
class CustomerOrderLine(models.Model):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user