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 76fafe8842
commit e6a29cc33a

View File

@ -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"):