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

Don't serialize pricing

- Saves MANY queries and provides drastic speedup
This commit is contained in:
Oliver Walters
2019-05-20 23:03:19 +10:00
parent 18ff80312b
commit d15b09a5f4
3 changed files with 0 additions and 22 deletions

View File

@ -1007,8 +1007,3 @@ class BomItem(models.Model):
base_quantity = self.quantity * build_quantity
return base_quantity + self.get_overage_quantity(base_quantity)
@property
def price_info(self):
""" Return the price for this item in the BOM """
return self.sub_part.get_price_info(self.quantity)