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):
|
||||
|
||||
list_display = (
|
||||
'reference',
|
||||
'title',
|
||||
'part',
|
||||
'status',
|
||||
'batch',
|
||||
'quantity',
|
||||
'creation_date',
|
||||
'completion_date',
|
||||
'title',
|
||||
'notes',
|
||||
)
|
||||
|
||||
search_fields = [
|
||||
'reference',
|
||||
'title',
|
||||
'part__name',
|
||||
'part__description',
|
||||
|
@ -48,6 +48,10 @@ class Build(MPTTModel):
|
||||
notes: Text notes
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Build Order")
|
||||
verbose_name_plural = _("Build Orders")
|
||||
|
||||
def __str__(self):
|
||||
return "{q} x {part}".format(q=decimal2string(self.quantity), part=str(self.part.full_name))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user