mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +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
|
||||
|
||||
def update_item_price(self):
|
||||
if self.is_new():
|
||||
return
|
||||
|
||||
frappe.db.sql(
|
||||
"""
|
||||
UPDATE `tabItem Price`
|
||||
|
||||
Reference in New Issue
Block a user