mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-19 19:49:48 +00:00
(cherry picked from commit 28fea388f6)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
co-authored by
Oliver
parent
e013f03422
commit
8df20e39ab
@@ -2957,7 +2957,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