You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Go to Customer contracts
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
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
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:
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
The text was updated successfully, but these errors were encountered: