I’m exploring the e-commerce capabilities of erpnext and I’m having an issue with customers viewing their quotations after submitting.
A customer will add items to their cart, click “Request for Quote”. The quote actually gets submitted but then it redirects the customer to the quotation page, which results in this:
Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 18, in get_response
response = renderer_instance.render()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 78, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 510, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 89, in get_html
self.update_context()
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 157, in update_context
data = self.run_pymodule_method("get_context")
File "apps/frappe/frappe/website/page_renderers/template_page.py", line 219, in run_pymodule_method
return method(self.context)
File "apps/erpnext/erpnext/templates/pages/order.py", line 43, in get_context
"Customer", context.doc.customer, "loyalty_program"
AttributeError: 'Quotation' object has no attribute 'customer'