Skip to Content
Menu
This question has been flagged

For my multi-company setup, I had no problems choosing Invoicing>Configuration>Settings>Package - "Singapore Chart of Accounts" on Odoo 12.0-20181118 (Community Edition)

But when I selected my second company, I received an error. Error message below.

Would appreciate any help.


Error:

Odoo Server Error


Traceback (most recent call last):

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 653, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 312, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/tools/pycompat.py", line 87, in reraise

    raise value

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 695, in dispatch

    result = self._call_function(**self.params)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 344, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/service/model.py", line 97, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 337, in checked_call

    result = self.endpoint(*a, **kw)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 938, in __call__

    return self.method(*args, **kw)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/http.py", line 517, in response_wrap

    response = f(*args, **kw)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/web/controllers/main.py", line 966, in call_button

    action = self._call_kw(model, method, args, {})

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/web/controllers/main.py", line 954, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/api.py", line 749, in call_kw

    return _call_kw_multi(method, model, args, kwargs)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/api.py", line 736, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/base/models/res_config.py", line 621, in execute

    self.set_values()

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/sale/models/res_config_settings.py", line 81, in set_values

    super(ResConfigSettings, self).set_values()

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/purchase/models/res_config_settings.py", line 41, in set_values

    super(ResConfigSettings, self).set_values()

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/hr_expense/models/res_config_settings.py", line 23, in set_values

    super(ResConfigSettings, self).set_values()

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/crm/models/res_config_settings.py", line 49, in set_values

    super(ResConfigSettings, self).set_values()

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/account/models/res_config_settings.py", line 100, in set_values

    self.chart_template_id.load_for_current_company(15.0, 15.0)

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/addons/account/models/chart_template.py", line 237, in load_for_current_company

    company.transfer_account_id = self.env['account.account'].search([('code', '=like', self.transfer_account_code_prefix + '%')])[0]

  File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20181118-py3.7.egg/odoo/models.py", line 5051, in __getitem__

    return self._browse((self._ids[key],), self.env)

IndexError: tuple index out of range

Avatar
Discard
Author

The issue I faced was primarily a access rights configuration. It has since been fixed.

Related Posts Replies Views Activity
0
Nov 24
63
1
Feb 21
1408
2
Nov 24
109
2
May 24
515
2
Jan 24
795