Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Odoo Server Error
- Traceback (most recent call last):
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 677, in dispatch
- result = self._call_function(**self.params)
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 353, in _call_function
- return checked_call(self.db, *args, **kwargs)
- File "/Users/alain/odoo-server/odoo-dev/odoo/service/model.py", line 93, in wrapper
- return f(dbname, *args, **kwargs)
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 346, in checked_call
- result = self.endpoint(*a, **kw)
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 923, in __call__
- return self.method(*args, **kw)
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 523, in response_wrap
- response = f(*args, **kw)
- File "/Users/alain/odoo-server/odoo-dev/addons/web/controllers/main.py", line 1318, in call_kw
- return self._call_kw(model, method, args, kwargs)
- File "/Users/alain/odoo-server/odoo-dev/addons/web/controllers/main.py", line 1310, in _call_kw
- return call_kw(request.env[model], method, args, kwargs)
- File "/Users/alain/odoo-server/odoo-dev/odoo/api.py", line 394, in call_kw
- result = _call_kw_multi(method, model, args, kwargs)
- File "/Users/alain/odoo-server/odoo-dev/odoo/api.py", line 381, in _call_kw_multi
- result = method(recs, *args, **kwargs)
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_report.py", line 1124, in get_report_informations
- 'main_html': self.get_html(options),
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_report.py", line 1162, in get_html
- headers, lines = self._get_table(options)
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_report.py", line 718, in _get_table
- return self.get_header(options), self._get_lines(options)
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_general_ledger.py", line 66, in _get_lines
- return self._get_general_ledger_lines(options, line_id=line_id)
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_general_ledger.py", line 136, in _get_general_ledger_lines
- lines.append(self._get_aml_line(options, account, aml, company_currency.round(cumulated_balance)))
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_general_ledger.py", line 758, in _get_aml_line
- columns.insert(3, {'name': self.format_value(aml['amount_currency'], currency=currency, blank_if_zero=True), 'class': 'number'})
- File "/Users/alain/odoo-server/enterprise-dev/account_reports/models/account_report.py", line 1276, in format_value
- if currency_id.is_zero(amount):
- File "/Users/alain/odoo-server/odoo-dev/odoo/addons/base/models/res_currency.py", line 170, in is_zero
- return tools.float_is_zero(amount, precision_rounding=self.rounding)
- File "/Users/alain/odoo-server/odoo-dev/odoo/tools/float_utils.py", line 125, in float_is_zero
- return abs(float_round(value, precision_rounding=epsilon)) < epsilon
- File "/Users/alain/odoo-server/odoo-dev/odoo/tools/float_utils.py", line 72, in float_round
- normalized_value = value / rounding_factor # normalize
- Exception
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 632, in _handle_exception
- return super(JsonRequest, self)._handle_exception(exception)
- File "/Users/alain/odoo-server/odoo-dev/odoo/http.py", line 317, in _handle_exception
- raise exception.with_traceback(None) from new_cause
- TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement