mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-28 23:51:34 +00:00
Add view for BomItem model
- Create BOM item (auto-add to a parent part) - Edit / delete - View details
This commit is contained in:
@@ -201,6 +201,9 @@ class BomItem(models.Model):
|
||||
which parts are required (and in what quatity) to make it
|
||||
"""
|
||||
|
||||
def get_absolute_url(self):
|
||||
return '/part/bom/{id}/'.format(id=self.id)
|
||||
|
||||
# A link to the parent part
|
||||
# Each part will get a reverse lookup field 'bom_items'
|
||||
part = models.ForeignKey(Part, on_delete=models.CASCADE, related_name='bom_items')
|
||||
|
Reference in New Issue
Block a user