mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-13 08:21:26 +00:00
Added some more BomItem tests
This commit is contained in:
@ -477,8 +477,8 @@ class BomItem(models.Model):
|
||||
unique_together = ('part', 'sub_part')
|
||||
|
||||
def __str__(self):
|
||||
return "{par} -> {child} ({n})".format(
|
||||
par=self.part.name,
|
||||
return "{n} x {child} to make {parent}".format(
|
||||
parent=self.part.name,
|
||||
child=self.sub_part.name,
|
||||
n=self.quantity)
|
||||
|
||||
|
Reference in New Issue
Block a user