Search code examples
cssodoo

Odoo CSS styles break


All of a sudden, Odoo login screen is damaged and the CSS styling becomes a mess as shown in the snapshot.

Symptoms:

  • This happens with certain databases, but when creating new database it doesn't happen.

  • Doesn't appear as long as I'm working on the same browser, when changing browser the problem appears.

What I tried:

  • I installed a fresh database and started installing modules one by one in order to see which one will crash, but nothing happened.

I'm using Odoo 11CE from the official docker image.

enter image description here


Solution

  • Restart your Odoo server and check your log at Odoo startup to find a python import error or warning because that normally it's associated with a python error loading your odoo modules from the addons paths. Not need to be installed modules.

    Also the same could be happening when your Odoo server it's trying to load another Odoo database that fails to load due to a different Odoo version or because the lack of modules loaded for that database