Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 813, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 919, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/14/addons/mpg/e-commerce/website_sale_maintenance_mode/controllers/main.py", line 19, in shop
page=page, category=category, search=search, ppg=ppg, **post
File "/usr/lib/python3/dist-packages/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/website_sale/controllers/main.py", line 213, in shop
category = Category.search([('id', '=', int(category))], limit=1)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 813, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 919, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/14/addons/mpg/e-commerce/website_sale_maintenance_mode/controllers/main.py", line 19, in shop
page=page, category=category, search=search, ppg=ppg, **post
File "/usr/lib/python3/dist-packages/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/website_sale/controllers/main.py", line 213, in shop
category = Category.search([('id', '=', int(category))], limit=1)
ValueError: invalid literal for int() with base 10: '159?order=list_price desc'