Skip to Content
Menú
This question has been flagged
1 Respondre
4825 Vistes

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
Descartar
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
Descartar
Autor

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 Respostes Vistes Activitat
0
de juny 24
151
2
de febr. 21
5993
1
de maig 18
6695
1
de maig 25
1111
1
d’abr. 25
2434