Does any one did have issues trying to extend a report from
industry_fsm_report module? Im trying to extend the module but an error from odoo telling me the module is not installed appears, here are some test:
INSTALLATION OF MODULE TEST:
acttelematica-test-env-21567738=> SELECT
im.model,
im.name as model_name,
imm.name as module_name,
imm.state as module_state
FROM
ir_model im
JOIN
ir_model_data imd ON imd.model = 'ir.model' AND imd.res_id = im.id
JOIN
ir_module_module imm ON imm.name = split_part(imd.module, '.', 1)
WHERE
im.model = 'x_project_task_worksheet_template_13';
model | model_name | module_name | module_state
--------------------------------------+--------------------------------------------------------+---------------------+--------------
x_project_task_worksheet_template_13 | {"en_US": "plantilla test", "es_ES": "plantilla test"} | industry_fsm_report | installed
ERROR ON LOG EVENTS:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 2375, in __call__
response = request._serve_db()
File "/home/odoo/src/odoo/odoo/http.py", line 1928, in _serve_db
self.registry = Registry(self.db).check_signaling()
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 89, in __new__
return cls.new(db_name)
File "<decorator-gen-16>", line 2, in new
File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 481, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 366, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 196, in load_module_graph
model_names = registry.load(env.cr, package)
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 267, in load
model = cls._build_model(self, cr)
File "/home/odoo/src/odoo/odoo/models.py", line 720, in _build_model
raise TypeError("Model %r does not exist in registry." % name)
TypeError: Model 'x_project_task_worksheet_template_13' does not exist in registry.
CONFIGURATION OF MODULE
{
'name': 'Plantillas Personalizadas',
'version': '1.0',
'description': 'Aplicación que guardas las plantillas para la aplicación servicio externo',
'summary': 'Plantillas Servicio Externo',
'license': 'LGPL-3',
'depends': ['industry_fsm_report'],
'data': [
'views/worksheet_template_views.xml',
],
}
from odoo import models, fields, _
class PlantillaTest(models.Model):
_inherit = 'x_project_task_worksheet_template_13'
barra_estados = fields.Selection([
('v_fallida', 'Visita Fallida'),
('ats', 'Llenar ATS'),
('ta', 'Llenar trabajo en alturas'),
('a_fallida', 'Actividad Fallida'),
('informe', 'Llenar reporte'),
('check_list', 'Lista de Chequeo'),
('fin', 'Informes llenos'),
], string="Estado", default='v_fallida', readonly=True)
I will really appreciate your help on this issue,
Hello, thank you so mucho for your answer, I did implement the changes and the error is not appearing, but the fields are not being agrregated into the model