css - 如何在odoo上使用scss @import规则?
问题描述
我正在尝试对我的样式使用 @import 规则,以便我可以以更有效的方式管理它们,但不幸的是它不起作用。我收到以下错误。问题是,我在许多 odoo 主题中看到人们使用它。那么,那么缺少什么?如果您知道解决方案,我将不胜感激。
Style error
The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.
Local import './main' is forbidden for security reasons. Please remove all @import {your_file} imports in your custom files. In Odoo you have to import all files in the assets, and not through the @import statement.
解决方案
推荐阅读
- kubernetes - 有条件的舵钩
- c# - 选择语句:无效的列名,在 C# 中使用 Dapper
- php - 从数组 .. 中查找字符串中的所有匹配项并返回匹配项
- android - 当我在数据库中保存为时间戳的日期临近时,Firestore 是否可以向我的应用发送通知?
- matlab - 缺少 Matlab 共享库导致的错误
- android - java.io.FileNotFoundException: Permission denied - 在颤振中我得到了这个错误
- python-3.x - 无法导入 gensim 模块
- postgresql - 故障转移/切换后更改节点 IP 的可能性
- python-3.x - 列表中的一对坐标,其 y 轴相等且 x 轴彼此大或小 1
- autodesk-forge - BIM 360 无法创建现有文件的版本