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

I set up for each domain for specific db by option specific_url_db in openerp-server.conf

specific_url_db=abc.com:hotel70,cde.net:idw7_2

But anyway user can enter this url: abc.com/?db=idw7_2 this request is ok. And You can login with info db hotel70 but in url ?db=idw7_2 appear, then if you go to some menu error will appear.

How to prevent this problem? Thank you.

아바타
취소
베스트 답변

Hello !

Using web addon, we can fulfill this requirement. We have to do some changes in Javascript existing functions.

I don't think that there will be any module available on the community for this.

Thanks,
www.acespritech.com

아바타
취소
작성자

Thank you! I customized a module for this to use specfic_url_db option in load_db function and it work correctly when user do not add ?db=selecteddb.

베스트 답변

You can specify Filters for certain domains:

E.g.

  • all requests from http://test.yourdomain.com:8069 only see databases starting with test (e.g test1, test2)
  • all requests from http://demo.yourdomain.com:8069 only see databases starting with demo (e.g demo1, demo2)

Further details see here:

아바타
취소
작성자

I think it is not the way to solve this problem because when we use option specific_url_db it will return only db we choose for specific domain. Then this db was selected but the way when we add url parameter ?db=newdb it will error. Maybe I think will do a redirect option when user do this action.

베스트 답변

In ODOO 14 also selecting /?db=

아바타
취소
관련 게시물 답글 화면 활동
11
7월 24
100795
2
10월 16
8800
2
9월 23
9202
1
5월 18
4673
3
1월 25
4167