Skip to Content
Menu
This question has been flagged
2 Replies
16226 Views

we have been trying to get the dbfilter option to work in the conf file.

We want to set db1 as the default database since its loaded with the website.

Also, be able to log in and access the other databases [db2,db3.db4...]

any suggestion?


Avatar
Discard
Best Answer

You have 2 options using command line options:

  1. Make sure that the expression used in --db-filter selects all the databases that can be selected. OR

  2. Use the -d or --database option with a comma separated list of db names. 

You could also specify the values in the odoo.conf file instead of the command line options:

    1. db_name is the equivalent of the command line option -d / --database

    2. dbfilter is the equivalent of the command line option --db-filter

Avatar
Discard
Best Answer

Hi,

In the configuration file add db_name=db1 and try.  You can see the working of the db_name in the configuration file here: Filter Particular Database In Odoo

Thanks

Avatar
Discard