2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

Add 'note' field to BOM item model

This commit is contained in:
Oliver Walters
2019-04-14 18:26:11 +10:00
parent 9e5eed5d5e
commit d5186fc615
2 changed files with 21 additions and 0 deletions

View File

@ -375,6 +375,9 @@ class BomItem(models.Model):
# Quantity required
quantity = models.PositiveIntegerField(default=1, validators=[MinValueValidator(0)])
# Note attached to this BOM line item
note = models.CharField(max_length=100, blank=True, help_text='Item notes')
def clean(self):
# A part cannot refer to itself in its BOM