Skip to Content
Menu
This question has been flagged
1 Reply
4679 Views

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',

],
},

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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

Related Posts Replies Views Activity
0
Jun 24
151
2
Feb 21
5940
1
May 18
6645
1
Apr 25
2273
1
Apr 25
2974