Odoo Help


Database Specific CSS Changes.

David Warner
on 1/10/14, 3:57 PM 1,412 views

Currently,I am working on a project where multiple databases are running with the help of same addons(single addons).I want to know how can only one of them will show my css changes and not all.I mean I need to change colour of some screens but only to my intended database and not all.


Timo Talvitie, Vizucom Oy

--Timo Talvitie, Vizucom Oy--
| 5 4 7
Tampere, Finland
--Timo Talvitie, Vizucom Oy--

Lead developer at Vizucom.

Timo Talvitie, Vizucom Oy
On 1/10/14, 11:37 PM

Probably the easiest way would be to put all your CSS definitions into a separate module and then install that module only in certain databases.

  1. Create a new module
  2. Put your css file into newmodule/static/src/css/style.css
  3. Put the following into your __openerp__.py: 'css': ['static/src/css/style.css'],,

Now install this module to the database of your choice. It will apply all the CSS rules that you have defined in your style.css file, but only to that particular database, not others that you may have.

Thanks for your valuable feedback.Can you please elaborate further in detail?

David Warner
on 1/11/14, 4:18 AM

Please see the updated answer.

Vizucom Oy, Timo Talvitie, Vizucom Oy
on 1/15/14, 3:08 PM

Yeah...........thanks a lot.......his is what I was looking for. Thanks once again

David Warner
on 3/13/14, 3:52 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 1/10/14, 3:57 PM
Seen: 1412 times
Last updated: 3/16/15, 8:10 AM