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

I have already set the current reference in manifest file and checked the correct file but CSS is not working.  how can I check my CSS file load or not in odoo16?

'assets': {
'web.assets_frontend': [
'test_module/static/src/css/style.css',

],
},

الصورة الرمزية
إهمال
أفضل إجابة

Hi, To check if your CSS file is loaded in Odoo, open the developer tools in your browser and navigate to the Network tab. Refresh the page and look for the name of your CSS file in the list of network requests. If you find the file, it means that it is being loaded successfully. If not, check the file path in your manifest file and make sure that the CSS file is present in the specified location. You can also try clearing your browser cache and refreshing the page again.

Here are the steps in short:

  1. Open developer tools in your browser.
  2. Navigate to the Network tab.
  3. Refresh the page.
  4. Look for your CSS file in the list of network requests.
  5. If you find the file, it is loaded successfully.
  6. If not, check the file path in your manifest file and make sure that the CSS file is present in the specified location.

Hope it helps

الصورة الرمزية
إهمال
الكاتب

i have checked this, but is it, not the correct way because we can't see the full path,so how can I assume that my custom module CSS loaded?
can we pass on some content in the CSS file so we can determine whether the CSS file loaded

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 24
151
2
فبراير 21
5994
1
مايو 18
6699
1
مايو 25
1123
1
أبريل 25
2436