Odoo Help

Welcome!

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

2

How to remove the database selector for visitors

By
wizardz
on 3/30/15, 2:59 AM 1,428 views

Hi,

I want to remove the database selector for other visitors. I have more then 1 database. When I tip the url /web/database/selector it should show all databases that I have. Only when a visitors visit my site the firs time, he should have no selector and be redirected to the normal website.

How I can set this with virtual host in nginx? (https://github.com/odoo/odoo/issues/1401#issuecomment-84889934)

0
wizardz
On 4/1/15, 8:52 AM

This is not the answer to my problem.

I want that new visitors don't get redirected to /web/database/selector. 

It should be redirected to a db that is set as primary DB.

But when I tip in the URL /web/database/selector it should show me all my dbs that i have.



Don't work with that dbfilter, when I tip in web/database/selector it shows me only 1 database not all.

I want that when I tip web/database/selector it shows me all my database and when one visitor visit my site it goes to a random database, and not to the selector



Edit: Ok I found a way to clear my issue with Odoo 8 nginx. Contact me for Info.

no help?

wizardz
on 5/11/15, 4:36 AM
0
Richard
On 4/1/15, 3:58 PM

For a default database use the --db-filter='<dbname>' in the odoo startup comand. How to do this depends  on the OS you are running. I do run Ubuntu and added the filter to the start function in /etc/init.d/odoo

The filter can not be user dependent, so as a DevOps you must deal with this feature. You can either:

- use the db-filter and create another odoo instance on the same server  for managing the databases or

- you can change the filter and restart the odoo service, execute your database actions and restore your db-filter or

- create another Odoo server (copy the first) for your purpose

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 3/30/15, 2:59 AM
Seen: 1428 times
Last updated: 5/22/15, 8:50 AM