Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Can I have a different theme color (NavBar) for each Company? v15 EE

Avatar
odoo
1 Comment
Avatar
Discard
Avatar
odoo
-

This is fantastic, thank you!

2 Answers
0
Avatar
odoo
Best Answer

I'm trying to do this in Odoo 16 online, I keep getting this error when trying to create a new view. "Oh snap! Document is empty, line 1, column 1" 

I've double check everything is filled out like the screenshot. Can someone help?

Avatar
Discard
0
Avatar
odoo
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

            
1 Comment
Avatar
Discard
Avatar
odoo
-

color per company