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

Fix for bug b)

- Don't attempt to save if there are duplicates
- Fix overwritten variable name
- Provide correct return data to the form
This commit is contained in:
Oliver Walters
2020-02-06 23:22:55 +11:00
parent 2949289fab
commit 4bd4f2a0a3
3 changed files with 42 additions and 20 deletions

View File

@ -360,7 +360,7 @@ class StockItem(models.Model):
choices=StockStatus.items(),
validators=[MinValueValidator(0)])
notes = MarkdownxField(blank=True, help_text=_('Stock Item Notes'))
notes = MarkdownxField(blank=True, null=True, help_text=_('Stock Item Notes'))
# If stock item is incoming, an (optional) ETA field
# expected_arrival = models.DateField(null=True, blank=True)