mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
PEP fixes
This commit is contained in:
parent
3954b33fb7
commit
d8d41c6eff
@ -153,6 +153,7 @@ class Company(models.Model):
|
|||||||
|
|
||||||
return self.purchase_orders.filter(status__in=OrderStatus.FAILED)
|
return self.purchase_orders.filter(status__in=OrderStatus.FAILED)
|
||||||
|
|
||||||
|
|
||||||
class Contact(models.Model):
|
class Contact(models.Model):
|
||||||
""" A Contact represents a person who works at a particular company.
|
""" A Contact represents a person who works at a particular company.
|
||||||
A Company may have zero or more associated Contact objects.
|
A Company may have zero or more associated Contact objects.
|
||||||
@ -248,7 +249,7 @@ class SupplierPart(models.Model):
|
|||||||
@property
|
@property
|
||||||
def manufacturer_string(self):
|
def manufacturer_string(self):
|
||||||
""" Format a MPN string for this SupplierPart.
|
""" Format a MPN string for this SupplierPart.
|
||||||
Concatenates manufacture name and part number
|
Concatenates manufacture name and part number.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
items = []
|
items = []
|
||||||
@ -339,7 +340,6 @@ class SupplierPart(models.Model):
|
|||||||
else:
|
else:
|
||||||
return max(q - r, 0)
|
return max(q - r, 0)
|
||||||
|
|
||||||
|
|
||||||
def purchase_orders(self):
|
def purchase_orders(self):
|
||||||
""" Returns a list of purchase orders relating to this supplier part """
|
""" Returns a list of purchase orders relating to this supplier part """
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user