Odoo hide breadcrumble

2019-08-20 00:17发布

I am trying to hide breadcrumb like in this example:

My code:

my_model_view.xml

    <template id="assets_frontend" name="my_model assets" inherit_id="website.assets_frontend" >
        <xpath expr="." position="inside">
            <link rel='stylesheet' href="/my_model/static/src/css/style.css"/>
        </xpath>
    </template>


</data>

style.css

.breadcrumb > li {
  display: none !important;
}
.breadcrumb > .active {
  display: none !important;
}

and openerp.py:

"data": [
    "my_model_view.xml",
],

After that I restarted servise, saw that my_model_view.xml was loaded but nothing happens. Breadcumb of my model is still visible. No errors I don't know where is the problem.

UPDATE:

I found the solution. The problem was with this file: my_model_view.xml. New my_model_view.xml version:

<template id="assets_backend" name="my_model assets" inherit_id="web.assets_backend" >
    <xpath expr="." position="inside">
        <link rel='stylesheet' href="/my_model/static/src/css/style.css"/>
    </xpath>
</template>

0条回答
登录 后发表回答