Closed Jake-Tong-Epiklah closed 1 year ago
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Module
Base_geoengine
Describe the bug
When I tried to install base_geoengine to get the mapping features for Field Service Management, it gives me the error like below: Error: Odoo Server Error
Traceback (most recent call last): File "/opt/odoo14/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/opt/odoo14/odoo/odoo/http.py", line 683, in dispatch result = self._call_function(self.params) File "/opt/odoo14/odoo/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo14/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/opt/odoo14/odoo/odoo/http.py", line 347, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo14/odoo/odoo/http.py", line 912, in call return self.method(*args, *kw) File "/opt/odoo14/odoo/odoo/http.py", line 531, in response_wrap response = f(args, kw) File "/opt/odoo14/odoo/addons/web/controllers/main.py", line 1398, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo14/odoo/addons/web/controllers/main.py", line 1386, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo14/odoo/odoo/api.py", line 399, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo14/odoo/odoo/api.py", line 386, in _call_kw_multi result = method(recs, *args, *kwargs) File "", line 2, in button_immediate_install
File "/opt/odoo14/odoo/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, args, **kwargs)
File "/opt/odoo14/odoo/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo14/odoo/odoo/addons/base/models/ir_module.py", line 593, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo14/odoo/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo14/odoo/odoo/modules/loading.py", line 459, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/opt/odoo14/odoo/odoo/modules/loading.py", line 347, in load_marked_modules
loaded, processed = load_module_graph(
File "/opt/odoo14/odoo/odoo/modules/loading.py", line 198, in load_module_graph
registry.setup_models(cr)
File "/opt/odoo14/odoo/odoo/modules/registry.py", line 273, in setup_models
model._setup_base()
File "/opt/odoo14/odoo/odoo/models.py", line 2793, in _setup_base
self._add_field(name, field.new())
File "/opt/odoo14/odoo/odoo/models.py", line 404, in _add_field
field.setup_base(self, name)
File "/opt/odoo14/odoo/odoo/fields.py", line 278, in setup_base
self._setup_attrs(model, name)
File "/opt/odoo14/odoo/odoo/fields.py", line 2324, in _setup_attrs
raise ValueError(
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/odoo14/odoo/odoo/http.py", line 639, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo14/odoo/odoo/http.py", line 315, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: ir.model.fields.ttype: required selection fields must define an ondelete policy that implements the proper cleanup of the corresponding records upon module uninstallation. Please use one or more of the following policies: 'set default' (if the field has a default defined), 'cascade', or a single-argument callable where the argument is the recordset containing the specified option.
To Reproduce
Affected versions: Odoo14
Steps to reproduce the behavior: