Usando odoo 16 CE con los repositorios de crm y management-system de la oca.
Si instalo el módulo crm_claim_type y luego intento instalar mgmtsystem_claim. Obtengo el siguiente error.
2024-11-06 07:39:06,909 243516 INFO reinati odoo.modules.loading: loading mgmtsystem_claim/views/mgmtsystem_claim.xml 
2024-11-06 07:39:06,927 243516 WARNING reinati odoo.modules.loading: Transient module states were reset 
2024-11-06 07:39:06,927 243516 ERROR reinati odoo.modules.registry: Failed to load registry 
Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/odoo/modules/registry.py", line 91, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 488, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 372, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 231, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 71, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 763, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 829, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 749, in parse
    self._tag_root(de)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 709, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing /opt/odoo/odoo/management-system/mgmtsystem_claim/views/mgmtsystem_claim.xml:29
Ocurrió un error al validar vista cercana
<form string="Claim" __validate__="1">
                <header>
                    <field name="stage_id" widget="statusbar" options="{'clickable': 1}"/>
Field 'claim_type' used in domain of field 'stage_id' ([ '&','|',('team_ids', '=', team_id), ('case_default', '=', True), '|',('claim_type', '=', claim_type),('claim_common', '=', True)]) must be present in view but is missing.
View error context:
{'file': '/opt/odoo/odoo/management-system/mgmtsystem_claim/views/mgmtsystem_claim.xml',
 'line': 1,
 'name': 'Management System Claims Form',
 'view': ir.ui.view(6197,),
 'view.model': 'mgmtsystem.claim',
 'view.parent': ir.ui.view(),
 'xmlid': 'mgmtsystem_claims_form_view'}
2024-11-06 07:39:06,928 243516 CRITICAL reinati odoo.service.server: Failed to initialize database `reinati`. 
Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/odoo/service/server.py", line 1310, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/opt/odoo/odoo/odoo/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/odoo/modules/registry.py", line 91, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 488, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 372, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 231, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "/opt/odoo/odoo/odoo/odoo/modules/loading.py", line 71, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 763, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 829, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 749, in parse
    self._tag_root(de)
  File "/opt/odoo/odoo/odoo/odoo/tools/convert.py", line 709, in _tag_root
    raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing /opt/odoo/odoo/management-system/mgmtsystem_claim/views/mgmtsystem_claim.xml:29
Ocurrió un error al validar vista cercana
<form string="Claim" __validate__="1">
                <header>
                    <field name="stage_id" widget="statusbar" options="{'clickable': 1}"/>
Field 'claim_type' used in domain of field 'stage_id' ([ '&','|',('team_ids', '=', team_id), ('case_default', '=', True), '|',('claim_type', '=', claim_type),('claim_common', '=', True)]) must be present in view but is missing.
View error context:
{'file': '/opt/odoo/odoo/management-system/mgmtsystem_claim/views/mgmtsystem_claim.xml',
 'line': 1,
 'name': 'Management System Claims Form',
 'view': ir.ui.view(6197,),
 'view.model': 'mgmtsystem.claim',
 'view.parent': ir.ui.view(),
 'xmlid': 'mgmtsystem_claims_form_view'}
No entiendo la razón, alguien podría decirme si hay algún tipo de incompatibilidad entre los módulos? He estado mirando y no veo nada raro.
Los módulos por separado instalan correctamente.