コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4816 ビュー

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.

アバター
破棄
最善の回答

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?

Please see the updated answer.

著作者

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

関連投稿 返信 ビュー 活動
2
3月 15
10782
1
6月 25
2896
3
3月 15
11006
1
10月 24
1025
1
6月 24
2409