aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-19 22:55:58 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-19 22:55:58 +0200
commit72111556edd4c108033e454758434df63045c0b0 (patch)
treec02fb2dbb42f4ce420e1dd93753c0ae5bf806a44 /servo/models
parent693697ea725b040f04dcd166f53f495ba6049eaa (diff)
downloadServo-72111556edd4c108033e454758434df63045c0b0.tar.gz
Servo-72111556edd4c108033e454758434df63045c0b0.tar.bz2
Servo-72111556edd4c108033e454758434df63045c0b0.zip
Cleanup
Diffstat (limited to 'servo/models')
-rw-r--r--servo/models/product.py11
1 files changed, 7 insertions, 4 deletions
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):