콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4874 화면

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
10889
1
6월 25
2996
3
3월 15
11079
1
10월 24
1084
1
6월 24
2541