首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >添加css文件odoo % 11

添加css文件odoo % 11
EN

Stack Overflow用户
提问于 2018-06-04 23:20:32
回答 1查看 2.7K关注 0票数 1

我想将css文件添加到我在odoo v11上的报告中。所以我使用这段代码:

代码语言:javascript
复制
 <template id="assets_backend" inherit_id="web.assets_backend">
    <xpath expr="." position="inside">
        <link href="/my_module/static/src/css/file.css" rel="stylesheet"/>
    </xpath>
</template>

当我更新模块时,我得到这个错误:

代码语言:javascript
复制
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Could not get content for /my_module/static/src/css/file.css defined in bundle 'web.assets_backend'.

你能帮帮我吗?

EN

回答 1

Stack Overflow用户

发布于 2018-06-05 03:40:22

如果你在Odoo构建web资源时没有可用的"file.css“,你会得到这个错误。请检查它是否在正确的路径中,以及是否具有正确的权限。

你可以在https://www.odoo.yenthevg.com/adding-static-resources-css-and-javascript-to-odoo/上找到一个关于web资源的很好的教程。参考资料可以在Odoo开发人员文档站点https://www.odoo.com/documentation/11.0/index.html上找到。

如果您在阅读并遵循链接中找到的材料后仍无法使其正常工作,请提供有关模块设置的确切信息。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50683868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档