Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] Error Group by date end #1097

Open
mtbochaca opened this issue Jul 5, 2024 · 0 comments
Open

[16.0] Error Group by date end #1097

mtbochaca opened this issue Jul 5, 2024 · 0 comments
Labels

Comments

@mtbochaca
Copy link

Module

contract

Describe the bug

When we group the list of contracts by end date, an error appears: ValueError: year 10000 is out of range

To Reproduce

Affected versions: 16.0

Steps to reproduce the behavior:

  1. Go to Customer contracts
  2. Group tree view by Date End

Expected behavior

Additional context
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/var/opt/odoo/OCB/odoo/http.py", line 1632, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/var/opt/odoo/OCB/odoo/service/model.py", line 133, in retrying
result = func()
File "/var/opt/odoo/OCB/odoo/http.py", line 1659, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/var/opt/odoo/OCB/odoo/http.py", line 1863, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/var/opt/odoo/OCB/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/var/opt/odoo/OCB/odoo/http.py", line 716, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/var/opt/odoo/OCB/addons/web/controllers/dataset.py", line 42, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/var/opt/odoo/OCB/addons/web/controllers/dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/var/opt/odoo/OCB/odoo/api.py", line 464, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/var/opt/odoo/OCB/odoo/api.py", line 435, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/var/opt/odoo/OCB/addons/web/models/models.py", line 103, in web_read_group
groups = self._web_read_group(domain, fields, groupby, limit, offset, orderby, lazy, expand,
File "/var/opt/odoo/OCB/addons/web/models/models.py", line 134, in _web_read_group
groups = self.read_group(domain, fields, groupby, offset=offset, limit=limit,
File "/var/opt/odoo/OCB/odoo/models.py", line 2203, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "/var/opt/odoo/OCB/odoo/models.py", line 2354, in _read_group_raw
result = [self._read_group_format_result(d, annotated_groupbys, groupby, domain) for d in data]
File "/var/opt/odoo/OCB/odoo/models.py", line 2354, in
result = [self._read_group_format_result(d, annotated_groupbys, groupby, domain) for d in data]
File "/var/opt/odoo/OCB/odoo/models.py", line 2099, in _read_group_format_result
range_end = value + gb['interval']
File "/var/opt/odoo/pyOdoo/lib/python3.9/site-packages/dateutil/relativedelta.py", line 405, in radd
return self.add(other)
File "/var/opt/odoo/pyOdoo/lib/python3.9/site-packages/dateutil/relativedelta.py", line 387, in add
ret = (other.replace(**repl)
ValueError: year 10000 is out of range

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPCError@https://admin.sematdata.com/web/assets/28596-26210b4/web.assets_backend.min.js:991:274
makeErrorFromResponse@https://admin.sematdata.com/web/assets/28596-26210b4/web.assets_backend.min.js:995:163
jsonrpc/promise</<@https://admin.sematdata.com/web/assets/28596-26210b4/web.assets_backend.min.js:1003:34

@mtbochaca mtbochaca added the bug label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant