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
Tags:

Assigned to
Contact
Shubhajit Kushari
shubhajit.kushari@browseinfo.in

Description
Hello

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

Error:

Odoo Server Error



Traceback (most recent call last):

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

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

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

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

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

raise value

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

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

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

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

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

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

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

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

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

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

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

response = f(*args, **kw)

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

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

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

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

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

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

File "/opt/odoo/odoo-13.0/odoo/api.py", 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/ir_module.py", line 72, in check_and_log

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

File "/opt/odoo/odoo-13.0/odoo/addons/base/models/ir_module.py", 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/ir_module.py", line 573, in _button_immediate_function

modules.registry.Registry.new(self._cr.dbname, update_module=True)

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

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

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

loaded_modules, update_module, models_to_check)

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

perform_checks=perform_checks, models_to_check=models_to_check

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

registry.setup_models(cr)

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

model._setup_fields()

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

field.setup_full(self)

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

self._setup_related_full(model)

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

field = target._fields[name]

KeyError: 'district_id'

Message and communication history