mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Upate admin interface
This commit is contained in:
parent
934078a42c
commit
a8d47c54f9
@ -10,17 +10,16 @@ from .models import Build, BuildItem
|
|||||||
class BuildAdmin(ImportExportModelAdmin):
|
class BuildAdmin(ImportExportModelAdmin):
|
||||||
|
|
||||||
list_display = (
|
list_display = (
|
||||||
|
'reference',
|
||||||
|
'title',
|
||||||
'part',
|
'part',
|
||||||
'status',
|
'status',
|
||||||
'batch',
|
'batch',
|
||||||
'quantity',
|
'quantity',
|
||||||
'creation_date',
|
|
||||||
'completion_date',
|
|
||||||
'title',
|
|
||||||
'notes',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
search_fields = [
|
search_fields = [
|
||||||
|
'reference',
|
||||||
'title',
|
'title',
|
||||||
'part__name',
|
'part__name',
|
||||||
'part__description',
|
'part__description',
|
||||||
|
@ -48,6 +48,10 @@ class Build(MPTTModel):
|
|||||||
notes: Text notes
|
notes: Text notes
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = _("Build Order")
|
||||||
|
verbose_name_plural = _("Build Orders")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "{q} x {part}".format(q=decimal2string(self.quantity), part=str(self.part.full_name))
|
return "{q} x {part}".format(q=decimal2string(self.quantity), part=str(self.part.full_name))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user