Traceback (most recent call last):
File "apps/frappe/frappe/website/serve.py", line 20, in get_response
return renderer_instance.render()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 41, in render
html = self.get_html()
File "apps/frappe/frappe/website/utils.py", line 540, in cache_html_decorator
html = func(*args, **kwargs)
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 50, in get_html
self.update_context()
~~~~~~~~~~~~~~~~~~~^^
File "apps/frappe/frappe/website/page_renderers/document_page.py", line 65, in update_context
ret = self.doc.get_context(self.context)
File "apps/webshop/webshop/webshop/doctype/override_doctype/item_group.py", line 59, in get_context
context.field_filters = filter_engine.get_field_filters()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "apps/webshop/webshop/webshop/product_data_engine/filters.py", line 24, in get_field_filters
filter_fields = [row.fieldname for row in self.doc.filter_fields] # fields in settings
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebshopItemGroup' object has no attribute 'filter_fields'
I am getting this error. Any Suggestions?
@Atheetha This is the same filter_fields attribute error that occurred during v14→v15 migrations as well.
Root cause: When you migrate to v16, the webshop app overrides Item Group with WebshopItemGroup. But during migration, the old DocType schema doesn’t get fully replaced — so WebshopItemGroup ends up missing the filter_fields child table that filters.py line 24 expects.
Fix that has worked for others with this exact error:
Uninstalling removes the stale DocTypes from the previous version, and reinstalling creates them fresh with the correct v16 schema including filter_fields.