mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-08 16:28:49 +00:00
Part model updates
This commit is contained in:
parent
d3781427ad
commit
4f6802b9bf
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user