Odoo Help


How to prevent user select specific db by add ?db=select_db in url ?

on 9/6/13, 2:31 AM 6,069 views

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


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.




| 3 2 6
Gandhinagar, India

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

Skype : acespritech

Email : info@acespritech.com

On 9/12/13, 2:08 AM

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.


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.

on 9/15/13, 1:15 PM

Andreas Brueckl

--Andreas Brueckl--

| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 9/13/13, 8:50 AM

You can specify Filters for certain domains:


  • 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.

on 9/15/13, 1:13 PM

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 9/6/13, 2:31 AM
Seen: 6069 times
Last updated: 12/14/17, 4:08 AM