Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
254 Weergaven


Hi, while running Odoo 18 community on Windows, my CSS files are not loading properly." please help to fix this

[options]
addons_path = C:\workspace\18\odoo\addons,C:\workspace\18\addons
admin_passwd = admin@123
db_host = localhost
db_port = 5432
db_user = odoo
db_password = odoo
xmlrpc_port= 8888
http_port = 8088
db_filter = odoo_18

Avatar
Annuleer

Start with checking your log files. Stop your Odoo service, start it again and read the log output from the beginning.

Beste antwoord

You can fix it this way:
1) Log in with email ID and password. 
2) install website module
and reload the web page.  CSS will work.

Avatar
Annuleer
Beste antwoord

Hii,

Ensure Node.js and lessc are installed correctly

Odoo uses Node.js and lessc (LESS compiler) to process styles.

➤ Steps:
  1. Install Node.js (if not installed)
    Download and install from: https://nodejs.org/en/download
  2. Open terminal (CMD or PowerShell) and run:


npm install -g less less-plugin-clean-css

This installs:

  • lessc → LESS compiler
  • less-plugin-clean-css → Odoo needs this to compile styles
  1. Confirm it's installed:

lessc --version

You should see something like: lessc 4.x.x

2. Clear Odoo Assets & Restart Server

After fixing Node.js/LESS:

  1. Delete the .assets cache:


C:\workspace\18\odoo\odoo\addons\web\static\lib

or if you're not sure, just delete this folder inside your Odoo project:

<your_odoo_instance>\.webassets-cache

  1. Restart your Odoo server:

python odoo-bin -c odoo.conf -u web --dev=all

Use --dev=all to force asset recompilation.


i hope it is usefull

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
mrt. 15
10489
2
jul. 25
77
0
jul. 25
3
0
jul. 25
178
1
jul. 25
266