fix: performance issue while adding template item in the cart

This commit is contained in:
Rohit Waghchaure
2020-10-04 20:14:53 +05:30
parent 58598c6070
commit 5056fbcb9d

View File

@@ -1069,8 +1069,7 @@ def invalidate_item_variants_cache_for_website(doc):
if item_code: if item_code:
item_cache = ItemVariantsCacheManager(item_code) item_cache = ItemVariantsCacheManager(item_code)
item_cache.clear_cache() item_cache.rebuild_cache()
def check_stock_uom_with_bin(item, stock_uom): def check_stock_uom_with_bin(item, stock_uom):
if stock_uom == frappe.db.get_value("Item", item, "stock_uom"): if stock_uom == frappe.db.get_value("Item", item, "stock_uom"):