2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

Allow non-integer stock movement

This commit is contained in:
Oliver Walters
2019-11-19 10:17:20 +11:00
parent e4bfe43c04
commit 9da8189899
5 changed files with 53 additions and 6 deletions

View File

@ -407,7 +407,7 @@ class Part(models.Model):
minimum_stock = models.PositiveIntegerField(default=0, validators=[MinValueValidator(0)], help_text=_('Minimum allowed stock level'))
units = models.CharField(max_length=20, default="pcs", blank=True, help_text=_('Stock keeping units for this part'))
units = models.CharField(max_length=20, default="", blank=True, help_text=_('Stock keeping units for this part'))
assembly = models.BooleanField(default=False, verbose_name='Assembly', help_text=_('Can this part be built from other parts?'))