تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
12071 أدوات العرض

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?

الصورة الرمزية
إهمال

This is fantastic, thank you!

أفضل إجابة

Base your work on this Proof of Concept.

UPDATE: Code in the GIST now supports

  • Odoo 15.0
  • Odoo 16.0
  • Odoo 17.0
  • Odoo 18.0


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

            
الصورة الرمزية
إهمال

color per company

أفضل إجابة

May be this will helpful: 


الصورة الرمزية
إهمال
أفضل إجابة

Does anyone know how to do this in version 18?  The code in the gist only changes part of the navbar, and not the buttons and menus.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 22
13592
4
مارس 16
7086
2
يوليو 25
1817
3
يوليو 25
2243
1
يوليو 25
1530