From 72111556edd4c108033e454758434df63045c0b0 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 19 Nov 2015 22:55:58 +0200 Subject: Cleanup --- servo/models/product.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'servo/models') diff --git a/servo/models/product.py b/servo/models/product.py index 768dc88..aa20cc9 100644 --- a/servo/models/product.py +++ b/servo/models/product.py @@ -523,6 +523,9 @@ class Product(AbstractBaseProduct): return self.pk or Product.objects.get(code=self.code).pk def update_photo(self): + """ + Updates this product image with the GSX part image + """ if self.component_code and not self.photo: try: part = parts.Part(partNumber=self.code) @@ -605,19 +608,19 @@ class Inventory(models.Model): amount_minimum = models.PositiveIntegerField( default=0, - verbose_name=_("minimum amount") + verbose_name=_("Minimum amount") ) amount_reserved = models.PositiveIntegerField( default=0, - verbose_name=_("reserved amount") + verbose_name=_("Reserved amount") ) amount_stocked = models.IntegerField( default=0, - verbose_name=_("stocked amount"), + verbose_name=_("Stocked amount"), ) amount_ordered = models.PositiveIntegerField( default=0, - verbose_name=_("ordered amount") + verbose_name=_("Ordered amount") ) def move(self, new_location, amount=1): -- cgit v1.2.3