This question has been flagged
2 Replies
6864 Views

I have seen https://www.odoo.com/forum/help-1/how-can-i-change-the-odoo-basic-theme-color-v15-ee-203185 which outlines a way to change the color scheme of the NavBar / Menu's from the Odoo Standard.


How would I leverage this approach BUT with different colors PER COMPANY?

Avatar
Discard

This is fantastic, thank you!

Best Answer

Base your work on this Proof of Concept.

UPDATE: Code in the GIST now supports Odoo 15 and Odoo 16


Given two Companies, USA with ID=1 and CANADA with ID=2, you can achieve this:


Via a Custom View:


Using this code:

https://gist.github.com/ray-odoo/17a1dc72c7f59314ed1592b1a3db7e0c

            
Avatar
Discard

color per company

I am having a hard time doing this. After adding the above (via bug->Open View and click Create button in views list)

I get this error:

Error: Invalid model name: false
validateModel@http://localhost:8069/web/assets/368-52fbd06/web.assets_backend.min.js:1020:799
call@http://localhost:8069/web/assets/368-52fbd06/web.assets_backend.min.js:1026:51
loadViews@http://localhost:8069/web/assets/368-52fbd06/web.assets_backend.min.js:5594:264
_executeActWindowAction@http://localhost:8069/web/assets/368-52fbd06/web.assets_backend.min.js:5750:343
doAction@http://localhost:8069/web/assets/368-52fbd06/web.assets_backend.min.js:5777:8

Did anyone come up with a solution?

Cheers,