No existe hr.holidays
Resumen
Al intentar instalar el módulo l10n_mx_payroll sale un error referente al módulo hr.holidays
, actualmente lo tengo comentado en el archivo __init__.py
, se puede observar en el siguiente: !109 (diffs)
Logs relevantes y/o capturas de pantalla
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
result = request.dispatch()
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 702, in dispatch
result = self._call_function(**self.params)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 368, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 357, in checked_call
result = self.endpoint(*a, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 925, in __call__
return self.method(*args, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 546, in response_wrap
response = f(*args, **kw)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/addons/web/controllers/main.py", line 1328, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/addons/web/controllers/main.py", line 1316, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 471, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/api.py", line 456, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-80>", line 2, in button_immediate_install
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 470, in button_immediate_install
return self._button_immediate_function(self.env.registry[self._name].button_install)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/addons/base/models/ir_module.py", line 587, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 474, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 363, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/loading.py", line 188, in load_module_graph
model_names = registry.load(cr, package)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/modules/registry.py", line 237, in load
model = cls._build_model(self, cr)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/models.py", line 623, in _build_model
raise TypeError("Model %r does not exist in registry." % name)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 658, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/openpyme/Documentos/LOCALES/bench_odoo_15/parts/server/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
TypeError: Model 'hr.holidays' does not exist in registry.