تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3845 أدوات العرض

Hello!

I am trying to use @import rule on my styles so that I can manage them in a more efficient way but unfortunately it is not working. I getting the error below. The thing is that I see in many odoo themes that people use @import option. So, what is missing then? If you know the solution, please share it with me.


with @import './main'; i get this:

Error is:
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.


with @import "_main"; this:

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.
Error: File to import not found or unreadable: _main.
        on line 8767 of /stdin

>> @import "_main";

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
ديسمبر 23
2294
0
أغسطس 21
0
0
أغسطس 21
0
1
يونيو 24
2521
0
مارس 21
3468