Skip to Content
Menu
This question has been flagged
1 Reply
3254 Views

2014-09-21 04:48:33,375 9361 ERROR promain 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: 585, xml_id: website.theme_cerulean, model: n/a, parent_id: 543]

I have an odoo 8 instance, version september 8th. I configured website and some other modules, with demo data, on Centos 6.5. It works ok, both website and internal odoo modules menu.

Now, on yesterday, I installed another instance of odoo 8 on Ubuntu (got last release from git) and import database from first instance. Started with openerp-server -u all and it shows how load all modules. Problem appears when try to show webpage, I supose.

Error references ir_ui_view theme_cerulean (Element '<xpath expr="//link[@id='bootstrap_css']">' cannot be located in parent view) This is arch code stored in database, for that view:

<?xml version="1.0"?>
<data name="Cerulean" inherit_id="website.theme" active="False" customize_show="True">
        <xpath expr="//link[@id='bootstrap_css']" position="replace">
            <link rel="stylesheet" href="/website/static/src/css/bootswatch/cerulean.min.css" t-ignore="true"/>
        </xpath>
</data>

and referenced parent is Themes, wich arch code in database is:

<?xml version="1.0"?>
<t name="Theme" t-name="website.theme">
    <link id="bootstrap_css" rel="stylesheet" href="/web/static/lib/bootstrap/css/bootstrap.css" t-ignore="true"/>
    <link rel="stylesheet" href="/website/static/src/css/website.css" t-ignore="true"/>
</t>

I already checked the href files are present in that paths.

I have seen some other reports of this same errors on comunity forums, but no one any help further than disable website module and lost data.

Any ideas?

Avatar
Discard
Best Answer

Nestor,

This is a core error.

Please follow as said on https://github.com/odoo/odoo/issues/2152#issuecomment-54408187

Thanks.

Avatar
Discard
Author

Thanks for you reference. I Already did it with no success. However, I should be done something wrong because even creating a new database and then trying to install website builder module, it breaks just with that error on theme_cerulean. I tryed OCB version too, with same result and today updated odoo with no changes on results. It takes my attention almost anybody comments about this error,

Author

Update: Today made new installation, getting last source from OCB. Now I was able to install website builder and then, on another try, restore and update the database uplines commented.