Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
19822 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć