Check the response here: https://anvil.works/forum/t/form-not-found-import-error/5340
For example:
from ..Company import Company
from ..Product import Product
...
class Home(HomeTemplate):
def __init__(self, **properties):
# Set Form properties and Data Bindings.
self.init_components(**properties)
...
def product_asset_link_click(self, **event_args):
product=Product()
self.content_panel.clear()
self.content_panel.add_component(product)
def company_asset_link_click(self, **event_args):
company=Company()
self.content_panel.clear()
self.content_panel.add_component(company)