跳至內容
選單
此問題已被標幟
2 回覆
19791 瀏覽次數

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?


頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄