2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Build completion now handles unique serial numbers

Provide a method to test if a serial number matches for a given part
This commit is contained in:
Oliver Walters
2019-07-22 15:55:36 +10:00
parent 9a8e4d25d2
commit 23d03d6b9b
4 changed files with 93 additions and 27 deletions

View File

@ -280,6 +280,7 @@ class Part(models.Model):
else:
return static('/img/blank_image.png')
def validate_unique(self, exclude=None):
""" Validate that a part is 'unique'.
Uniqueness is checked across the following (case insensitive) fields: