Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4839 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jun. 24
151
2
feb. 21
5996
1
mei 18
6706
1
mei 25
1145
1
apr. 25
2463