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:
@ -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)
|
||||
|
Reference in New Issue
Block a user