OpenERP 7 Web Color Theme

One of the main feature of OpenERP 7 is the extend of the customization that can be done on both frontend and backend. But for a normal user to do some basic customization on the frontend of the OpenERP, he must have some knowledge in CSS and JavaScript. But in most of the cases the end user who uses the OpenERP will not have much knowledge in those fields.

We have developed a module called web_color_theme that allows the user to make small changes in the appearance of OpenERP with out the need of an expert. The module can be installed as a normal OpenERP module. Copy the module to the addons path the server and install the module from OpenERP client. After installing the module, a new menu will be created in the “Settings”. The menu path is “Settings -> Web Theme -> Web Theme Configuration“. A screen shot is shown below:

We can specify the colors then need to be used in the OpenERP web client. The field “Top Bar Gradient” specifies the color that need to be used in the top bar, “View Manager Header Gradient” color of the view header of form and tree view, “Left Bar Color” is the color of the leftbar, “Font Color” is the color of the font that need to be used in the OpenERP, “Main Menu Font Color” is the font color of the main menu, “Sub Menu Font Color” is the font color of the submenu, “Top Bar Menu Font Color” is the font color of the topbar menu items, “Tab String Font Color” is the font color of the tabs, “Button Background Color” is the background color of the buttons, “Link Color” is the color of the links like email, url links, many2one fields, view switcher etc., and “Form Background image URL” is the image that need to be displayed as the background of the form view. We can ether give the web url of the image or image stored in /web/static/src/img folder. In such a case the link can be given as “/web/static/src/img/form_sheetbg.png” else you can give the direct web address. A screenshot is given below:

A video illustrating the module feature is shown below:

The module is attached with the blog.

Module can also be downloaded from launchpad bzr branch lp:~r-launchpadzbeanz/zbeanz/web_addons

Comments

Esteban Echeverry: Very nice! Unfortunately it doesn't work in Odoo version 8. Any migration plans? Thanks a lot. ".

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Anonymous says:

    Cool stuff!
    Better to add a “Reset to Default” button
    And add more css selectors, e.g
    .openerp .oe_leftbar {
    text-shadow: ;
    }
    Thanks for sharing!

  2. Anonymous says:

    Unzipped “web_color_theme” into “addons/”, but the module is nowhere to be found at the administrator frontend. Version 7.0-20130904-231132

    1. Prajul P T says:

      Hi,

          Please Update the module list and try again..

  3. Nestor says:

    Very usefull. Thanks for sharing and your really open source spirit. I can’t wait to learn about openerp to begin creating and sharing new stuff.
    As a matter of bug report, after installing web_color_theme module, I receive an XmlHttpRequestError alert window (which disapears in two seconds) every time I close session.
    Greetings.

  4. Super awesome!
    Thank you very much!

  5. bechir says:

    Merci 🙂 bon travail

  6. L Jack says:

    Hi,
    This is very nice and much needed. However I keep getting the xmlhttprequesterror even though I updated the module list. Can you help me please? Thank you.
    L Jack

  7. Malcom Rivers says:

    Superb post.
    Thank a lot man.

  8. Nisthulan says:

    Dear Prajul,
    This module is very nice.
    Thank you for sharing.
    Can we set Different Color themes, for Different Companies in a Multi-Company Environment?
    Please let me knowm how to achieve it.

    1. Prajul P T says:

      Hi,

          Yes we can achive that. Right now it is not implemented in the module. In this module, the details of the color theme is stored in a table. So if we can set some rule based on company, we can set colors based on each company.

  9. Esteban Echeverry says:

    Very nice! Unfortunately it doesn’t work in Odoo version 8. Any migration plans? Thanks a lot.

© 2020 Zesty Beanz Pvt Ltd All Rights Reserved.