mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-10 15:36:17 +00:00
[bug] Handle deleted Part (#12578)
This commit is contained in:
@@ -2782,7 +2782,9 @@ class PartPricing(common.models.MetaMixin):
|
||||
try:
|
||||
self.refresh_from_db()
|
||||
except PartPricing.DoesNotExist:
|
||||
pass
|
||||
# The underlying Part (and this pricing entry) has been deleted
|
||||
# since this update was scheduled - nothing to do
|
||||
return
|
||||
|
||||
self.update_bom_cost(save=False)
|
||||
self.update_purchase_cost(save=False)
|
||||
|
||||
Reference in New Issue
Block a user