Odoo Help

Welcome!

This community 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.

0

Database Specific CSS Changes.

By
David Warner
on 1/10/14, 3:57 PM 880 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.

1
Timo Talvitie
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
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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