Odoo hide breadcrumble

青春壹個敷衍的年華 提交于 2019-12-12 04:06:35

问题


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>

来源:https://stackoverflow.com/questions/45934874/odoo-hide-breadcrumble

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!