mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-23 07:10:55 +00:00
Part model updates
This commit is contained in:
@ -56,6 +56,8 @@ class Part(models.Model):
|
|||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = "Part"
|
verbose_name = "Part"
|
||||||
verbose_name_plural = "Parts"
|
verbose_name_plural = "Parts"
|
||||||
|
unique_together = (("name", "category"),
|
||||||
|
("IPN", "category"))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def stock(self):
|
def stock(self):
|
||||||
|
Reference in New Issue
Block a user