ERPNEXT 13.13 - Failed to get method for command

Failed to get method for command

erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.is_cart_enabled with No module named 'erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings'

I have faced same issue and get resolved by following link.

Thank you @Suresh_Thakor

Thanks @Suresh_Thakor, it help me alot

I couldnt fix the issue with bench retry-upgrade

For now my workaround is just creating that module and the required function

create the file

/home/frappe-admin/frappe-bench/apps/erpnext/erpnext/shopping_cart/doctype/shopping_cart_settings/shopping_cart_settings.py

Add the required function

import frappe

@frappe.whitelist(allow_guest=True)
def is_cart_enabled():
    pass

UPDATE:
After deleting the file, the error wont come back, suggesting maybe a cache problem.