1
votes

I have three database (public, test, test1) is it possible for all user after open my URL redirect to public database without choose database from list?

Database (test, test1) only admin can see.

2
Add this one line to you config file : dbfilter = public - Chavada Viki
@VikiChavada Tnx for help, can you help me where is location config file? - Pointer
Which version of odoo you are using? - Chavada Viki
You cannot do this without editing the template of the login page because when you select the database you didn't loggin at all. How would you know the user if you don't know i think you should edit the template to matche your needs - Charif DZ
@VikiChavada odoo9 - Pointer

2 Answers

1
votes

You can try this:

The list of database shown to select belongs to the postgres user that you use to connect odoo to postgres.

You can create two postgres user (public_user, test_user) : for public database make the owner public_user. for test, test1 make the owner test_user.

run two instance of odoo the first one connect to postgres using public_user and here you can select only one database(public).

the other one use test_user to connect to postgres so you can select only 2 database (test,test1).

0
votes

When you run server you need to mention your default database name followed by --db-filter

Ex: --db-filter database_name

 ./odoo-server --addons-path=addons/ --db_user=openerp  --db_password=openerp --db-filter=jbe_gs