2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-06 05:30:56 +00:00

Increase unit testing for StockItem API

This commit is contained in:
Oliver Walters
2022-04-19 20:10:07 +10:00
parent 2315d0cb5d
commit 141f6ccbdf
2 changed files with 43 additions and 0 deletions

View File

@ -453,6 +453,9 @@ class StockItem(MPTTModel):
super().clean()
self.serial = self.serial.strip()
self.batch = self.batch.strip()
try:
if self.part.trackable:
# Trackable parts must have integer values for quantity field!