Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
19826 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää