Issue for branch (#1,788)
Status: OPEN
Date: 16/07/2021
ID: 1,788
S/O number: SO2021/1482335
Reviewer: Hiral Bhatt
Module Name: branch
Version: 13.0

Assigned to
Shubhajit Kushari


I bought this product yesterday and I cannot install
I have this error message
Thanks for your help


Odoo Server Error

Traceback (most recent call last):

File "/opt/odoo/odoo-13.0/odoo/", line 624, in _handle_exception

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

File "/opt/odoo/odoo-13.0/odoo/", line 310, in _handle_exception

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

File "/opt/odoo/odoo-13.0/odoo/tools/", line 14, in reraise

raise value

File "/opt/odoo/odoo-13.0/odoo/", line 669, in dispatch

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

File "/opt/odoo/odoo-13.0/odoo/", line 350, in _call_function

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

File "/opt/odoo/odoo-13.0/odoo/service/", line 94, in wrapper

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

File "/opt/odoo/odoo-13.0/odoo/", line 339, in checked_call

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

File "/opt/odoo/odoo-13.0/odoo/", line 915, in __call__

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

File "/opt/odoo/odoo-13.0/odoo/", line 515, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo-13.0/addons/web/controllers/", line 1343, in call_button

action = self._call_kw(model, method, args, kwargs)

File "/opt/odoo/odoo-13.0/addons/web/controllers/", line 1331, in _call_kw

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

File "/opt/odoo/odoo-13.0/odoo/", line 387, in call_kw

result = _call_kw_multi(method, model, args, kwargs)

File "/opt/odoo/odoo-13.0/odoo/", line 374, in _call_kw_multi

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

File "<decorator-gen-59>", line 2, in button_immediate_install

File "/opt/odoo/odoo-13.0/odoo/addons/base/models/", line 72, in check_and_log

return method(self, *args, **kwargs)

File "/opt/odoo/odoo-13.0/odoo/addons/base/models/", line 463, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "/opt/odoo/odoo-13.0/odoo/addons/base/models/", line 573, in _button_immediate_function, update_module=True)

File "/opt/odoo/odoo-13.0/odoo/modules/", line 86, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/odoo-13.0/odoo/modules/", line 423, in load_modules

loaded_modules, update_module, models_to_check)

File "/opt/odoo/odoo-13.0/odoo/modules/", line 315, in load_marked_modules

perform_checks=perform_checks, models_to_check=models_to_check

File "/opt/odoo/odoo-13.0/odoo/modules/", line 201, in load_module_graph


File "/opt/odoo/odoo-13.0/odoo/modules/", line 262, in setup_models


File "/opt/odoo/odoo-13.0/odoo/", line 2740, in _setup_fields


File "/opt/odoo/odoo-13.0/odoo/", line 433, in setup_full


File "/opt/odoo/odoo-13.0/odoo/", line 486, in _setup_related_full

field = target._fields[name]

KeyError: 'district_id'

Message and communication history