Odoo Help


Odoo Server Error

on 6/15/16, 12:28 PM 1,338 views

Hello, I just created a new database online and when I run a report for a balance sheet I get the following error message. I am not sure what went wrong, I even went to back to other database to see if it actual was a server error, but on those other database the report works. Does anyone has the same problem ?

Odoo Server Error

Traceback (most recent call last):
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 646, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 319, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-10/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 312, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 962, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/saas-10/openerp/http.py", line 512, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/enterprise/saas-10/web/controllers/main.py", line 899, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/enterprise/saas-10/web/controllers/main.py", line 891, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-10/openerp/api.py", line 254, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-10/openerp/api.py", line 385, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/enterprise/saas-10/account_reports/models/account_report_context_common.py", line 443, in get_html_and_data
    lines = self.get_report_obj().get_lines(self)
  File "/home/odoo/src/odoo/saas-10/openerp/api.py", line 252, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/src/enterprise/saas-10/account_reports/models/account_financial_report.py", line 69, in get_lines
    currency_table[company.currency_id.id] = used_currency.rate / company.currency_id.rate
ZeroDivisionError: float division by zero

I think that the error is clear :) The rate of your default company is not set :) (or set to 0)

You can activate developer mode and go in setting -> company -> currency and set the value.

Jérémy Kersten (jke)
on 6/15/16, 1:42 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/15/16, 12:28 PM
Seen: 1338 times
Last updated: 6/15/16, 1:42 PM