mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
perf: don't update price of newly inserted item
This commit is contained in:
@@ -526,6 +526,9 @@ class Item(Document):
|
|||||||
return self._stock_ledger_created
|
return self._stock_ledger_created
|
||||||
|
|
||||||
def update_item_price(self):
|
def update_item_price(self):
|
||||||
|
if self.is_new():
|
||||||
|
return
|
||||||
|
|
||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
UPDATE `tabItem Price`
|
UPDATE `tabItem Price`
|
||||||
|
|||||||
Reference in New Issue
Block a user