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

psycopg2.DataError: division by zero #81354

Open
rishalchand94 opened this issue Dec 14, 2021 · 3 comments
Open

psycopg2.DataError: division by zero #81354

rishalchand94 opened this issue Dec 14, 2021 · 3 comments

Comments

@rishalchand94
Copy link

Hi, i am getting this error. Can someone help me here how to solve this.

Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo13/odoo/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo13/odoo/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo13/odoo/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 910, in call
return self.method(*args, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1320, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1312, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 391, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 364, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo13/odoo/addons/crm_dashboard/models/crm_dashboard.py", line 846, in lead_details_user
''' % (session_user_id, session_user_id))
File "/opt/odoo13/odoo/odoo/sql_db.py", line 163, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/sql_db.py", line 240, in execute
res = self._obj.execute(query, params)
psycopg2.DataError: division by zero

Rishal

@odooaktiv
Copy link
Contributor

@rishalchand94 Can you please mention the steps to reproduce this error?

@rishalchand94
Copy link
Author

rishalchand94 commented Dec 17, 2021 via email

@odooaktiv
Copy link
Contributor

@rishalchand94 Thanks for the information.

For custom module and technical help you can post your question on the Odoo Forum(https://www.odoo.com/forum/help-1) where you can get the help from the community.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants