fix: performance issue while adding template item in the cart
This commit is contained in:
parent
76fafe8842
commit
e6a29cc33a
@ -1187,8 +1187,7 @@ def invalidate_item_variants_cache_for_website(doc):
|
||||
|
||||
if item_code:
|
||||
item_cache = ItemVariantsCacheManager(item_code)
|
||||
item_cache.clear_cache()
|
||||
|
||||
item_cache.rebuild_cache()
|
||||
|
||||
def check_stock_uom_with_bin(item, stock_uom):
|
||||
if stock_uom == frappe.db.get_value("Item", item, "stock_uom"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user