500: Internal Server Error

Tìm lại

Traceback (most recent call last):
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 234, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo/http.py", line 809, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/odoo/http.py", line 350, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/http.py", line 915, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/develop/biz_website/controllers/bach-hoa-pham/nuoc-rua-tay/product.py", line 20, in product
    return request.render("biz_website.product_detail", self._prepare_product_values(product, category, search, **kwargs))
  File "/opt/odoo/develop/biz_website/controllers/bach-hoa-pham/nuoc-rua-tay/product.py", line 223, in _prepare_product_values
    product.sudo().write({'product_count_view': product.product_count_view + 1})
AttributeError: 'product.public.category' object has no attribute 'product_count_view'