Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/tools/cache.py", line 85, in lookup
r = d[key]
File "/opt/odoo13/odoo/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('product.template', <function ProductTemplate._get_first_possible_variant_id at 0x7f6407c72d08>, False)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/models.py", line 5101, in ensure_one
_id, = self._ids
ValueError: not enough values to unpack (expected 1, got 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_http.py", line 234, in _dispatch
result = request.dispatch()
File "/opt/odoo13/odoo/odoo/http.py", line 809, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo13/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/service/model.py", line 96, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo13/addons/custom_ecom_live/konnichiwa/konni_website/controllers/controllers.py", line 1169, in product_url
return request.render("website_sale.product", self._prepare_product_values(product, category, search, **kwargs))
File "/opt/odoo13/addons/custom_ecom_live/konnichiwa/konni_website/controllers/controllers.py", line 813, in _prepare_product_values
product_product = request.env['product.product'].sudo().browse(product._get_first_possible_variant_id())
File "<decorator-gen-130>", line 2, in _get_first_possible_variant_id
File "/opt/odoo13/odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/opt/odoo13/odoo/addons/product/models/product_template.py", line 980, in _get_first_possible_variant_id
self.ensure_one()
File "/opt/odoo13/odoo/odoo/models.py", line 5104, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: product.template()