Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4872 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
10888
1
มิ.ย. 25
2994
3
มี.ค. 15
11076
1
ต.ค. 24
1084
1
มิ.ย. 24
2539