gpt4 book ai didi

css - 添加 css 文件 odoo 11

转载 作者:太空宇宙 更新时间:2023-11-04 07:16:17 27 4
gpt4 key购买 nike

我想将 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'.

你能帮帮我吗?

最佳答案

  1. 检查 requirements.txt 或依赖项是否安装正确。

  2. sudo apt install python3-libsass

sudo pip3 install libsass==0.12.3

关于css - 添加 css 文件 odoo 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50683868/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com