Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error updating Odoo database

By
Jose Ernesto
on 9/8/14, 9:58 AM 2,122 views

Hi all. First at all sorry for my english, is not good enough. Mi problem is I have a Odoo 8.0 server running but when I make a pull request to github and then i try to update my database usin the commando "/opt/odoo/odoo/./openerp-server -d odoo -u all" i receive the following error:

2014-09-08 13:53:51,153 14927 INFO odoo openerp.modules.loading: loading website/views/website_backend_navbar.xml
2014-09-08 13:53:51,836 14927 ERROR odoo openerp.addons.base.ir.ir_ui_view: Element '<xpath expr="//link[@id='bootstrap_css']">' cannot be located in parent view

Error context:
View `Cerulean`
[view_id: 295, xml_id: website.theme_cerulean, model: n/a, parent_id: 255]
2014-09-08 13:53:51,838 14927 CRITICAL odoo openerp.service.server: Failed to initialize database `odoo`.
Traceback (most recent call last):
  File "/opt/odoo/odoo/openerp/service/server.py", line 901, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/opt/odoo/odoo/openerp/modules/registry.py", line 324, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo/openerp/modules/loading.py", line 353, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/opt/odoo/odoo/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/odoo/odoo/openerp/modules/loading.py", line 198, in load_module_graph
    registry['ir.ui.view']._validate_module_views(cr, SUPERUSER_ID, module_name)
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1114, in _validate_module_views
    if not self._check_xml(cr, uid, [vid]):
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 206, in _check_xml
    view_def = self.read_combined(cr, uid, view.id, None, context=context)
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 552, in read_combined
    cr, uid, arch_tree, root_id, base.model, context=context)
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 504, in apply_view_inheritance
    source = self.apply_inheritance_specs(cr, uid, source, specs_tree, view_id, context=context)
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 482, in apply_inheritance_specs
    self.raise_view_error(cr, uid, _("Element '%s' cannot be located in parent view") % tag, inherit_id, context=context)
  File "/opt/odoo/odoo/openerp/api.py", line 235, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_ui_view.py", line 367, in raise_view_error
    raise AttributeError(message)
AttributeError: Element '<xpath expr="//link[@id='bootstrap_css']">' cannot be located in parent view

Error context:
View `Cerulean`
[view_id: 295, xml_id: website.theme_cerulean, model: n/a, parent_id: 255]

Any help?

0
Marek Mosiewicz
On 9/11/14, 8:42 AM

'<xpath expr="//link[@id='bootstrap_css']"> means that you have view extension which tries to change parent view but can not find correct place to attach its fields.

Do you have custom modules ? Do you update all modules from git ?

 

We can help you with Odoo

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/8/14, 9:58 AM
Seen: 2122 times
Last updated: 3/16/15, 8:10 AM