我想将css文件添加到我在odoo v11上的报告中。所以我使用这段代码:
<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>当我更新模块时,我得到这个错误:
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'.你能帮帮我吗?
发布于 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上找到。
如果您在阅读并遵循链接中找到的材料后仍无法使其正常工作,请提供有关模块设置的确切信息。
https://stackoverflow.com/questions/50683868
复制相似问题