2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Improved part logic

- Added field 'buildable' - can this part be made from other parts?
- Added @propery 'supplier_count'
- Improved part detail page with new features
This commit is contained in:
Oliver
2018-04-16 22:13:31 +10:00
parent e43439ef5b
commit 118d045e50
7 changed files with 61 additions and 16 deletions

View File

@@ -25,6 +25,7 @@ class EditPartForm(forms.ModelForm):
'IPN',
'URL',
'minimum_stock',
'buildable',
'trackable',
'purchaseable',
]
@@ -58,7 +59,7 @@ class EditBomItemForm(forms.ModelForm):
self.helper.form_id = 'id-edit-part-form'
self.helper.form_method = 'post'
self.helper.add_input(Submit('submit', 'Submit'))
class Meta: