Pointer
Pointer

Reputation: 2186

Odoo default database for all user

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.

Upvotes: 1

Views: 3957

Answers (2)

sfx
sfx

Reputation: 1841

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

Upvotes: 0

Charif DZ
Charif DZ

Reputation: 14751

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

Upvotes: 1

Related Questions