首页 > 解决方案 > 如何在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.

标签: csssassodooodoo-14

解决方案


推荐阅读