Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4834 Vizualizări

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

],
},

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
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 Răspunsuri Vizualizări Activitate
0
iun. 24
151
2
feb. 21
5995
1
mai 18
6702
1
mai 25
1132
1
apr. 25
2444