Skip to content

Instantly share code, notes, and snippets.

@name1984
Created January 20, 2025 17:47
Show Gist options
  • Save name1984/883a9fd9ac5d177789a353fbde021ba3 to your computer and use it in GitHub Desktop.
Save name1984/883a9fd9ac5d177789a353fbde021ba3 to your computer and use it in GitHub Desktop.
error en deploy
2025-01-20 17:28:05,807 18 ERROR t28364_spc170 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 477, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 365, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 228, in load_module_graph
load_data(env, idref, mode, kind='data', package=package)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 72, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 567, 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 /home/odoo/instance/extra_addons/spc/spc/views/crm_lead_views.xml:3
Ocurrió un error al validar la vista cercana a:
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" title="Enrich lead with company data" invisible="not show_enrich_button or type == 'opportunity'"/>
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" title="Enrich opportunity with company data" invisible="not show_enrich_button or type == 'lead'"/>
<button name="toggle_active" string="Restore" type="object" data-hotkey="x" invisible="probability &gt; 0 or active"/>
<button name="952" string="Lost" type="action" data-hotkey="l" title="Mark as lost" invisible="type == 'opportunity' or probability == 0 and not active"/>
<field name="stage_id" widget="statusbar_duration" options="{'clickable': '1', 'fold_field': 'fold'}" domain="['|', ('team_id', '=', team_id), ('team_id', '=', False)]" invisible="not active or type == 'lead'"/>
El campo "main_unit" no existe en el modelo "crm.lead"
View error context:
{'file': '/home/odoo/instance/extra_addons/spc/spc/views/crm_lead_views.xml',
'line': 11,
'name': 'Lead Form',
'view': ir.ui.view(11554,),
'view.model': 'crm.lead',
'view.parent': ir.ui.view(8745,),
'xmlid': 'crm_lead_view_form'}
2025-01-20 17:28:05,807 18 CRITICAL t28364_spc170 odoo.service.server: Failed to initialize database `t28364_spc170`.
Traceback (most recent call last):
File "/home/odoo/instance/odoo/odoo/service/server.py", line 1314, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/home/odoo/instance/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/instance/odoo/odoo/modules/registry.py", line 110, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 477, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 365, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 228, in load_module_graph
load_data(env, idref, mode, kind='data', package=package)
File "/home/odoo/instance/odoo/odoo/modules/loading.py", line 72, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/home/odoo/instance/odoo/odoo/tools/convert.py", line 567, 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 /home/odoo/instance/extra_addons/spc/spc/views/crm_lead_views.xml:3
Ocurrió un error al validar la vista cercana a:
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" title="Enrich lead with company data" invisible="not show_enrich_button or type == 'opportunity'"/>
<button string="Enrich" name="iap_enrich" type="object" class="btn btn-secondary" data-hotkey="g" title="Enrich opportunity with company data" invisible="not show_enrich_button or type == 'lead'"/>
<button name="toggle_active" string="Restore" type="object" data-hotkey="x" invisible="probability &gt; 0 or active"/>
<button name="952" string="Lost" type="action" data-hotkey="l" title="Mark as lost" invisible="type == 'opportunity' or probability == 0 and not active"/>
<field name="stage_id" widget="statusbar_duration" options="{'clickable': '1', 'fold_field': 'fold'}" domain="['|', ('team_id', '=', team_id), ('team_id', '=', False)]" invisible="not active or type == 'lead'"/>
El campo "main_unit" no existe en el modelo "crm.lead"
View error context:
{'file': '/home/odoo/instance/extra_addons/spc/spc/views/crm_lead_views.xml',
'line': 11,
'name': 'Lead Form',
'view': ir.ui.view(11554,),
'view.model': 'crm.lead',
'view.parent': ir.ui.view(8745,),
'xmlid': 'crm_lead_view_form'}
2025-01-20 17:28:05,807 18 INFO t28364_spc170 odoo.service.server: Stopping gracefully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment