コンテンツへスキップ
メニュー
この質問にフラグが付けられました
7 返信
33801 ビュー

Hi,

is there any option or app to hide the button of database selector.

Regards

アバター
破棄
最善の回答

In order to Hide the database selector screen, choose one of two options:

1. In the odoo.conf file [options]
list_db = False

2. Start odoo-bin (manually or in the .service file), with the --no-database-list parameter
i.e. ./odoo-bin -c /etc/odoo13.conf --no-database-list

Cheers!

アバター
破棄
最善の回答

Hi medmars,

You have a few options. You can add a database filter in order to only show the databases you'd like with the following option:

db_filter=REGEXP

For more information about the db_filter have a look at the documentation at https://www.odoo.com/documentation/11.0/setup/deploy.html#dbfilter

Alternatively you can set the list_db parameter to false - by doing this no databases will be listed or shown:

list_db=False

There is some limited documentation of this at https://www.odoo.com/documentation/11.0/setup/deploy.html#database-manager-security

You can find all server parameters and configuration options by running your Odoo-bin file with --help in order to output all options:

./odoo-bin --help


It will output all options, which you can find on Github at https://github.com/odoo/odoo/blob/cab7e0d204761a6249d67b4bb6e4b7ab6acb6e2b/odoo/tools/config.py#L102

Regards,
Yenthe

アバター
破棄
著作者

Thanks Yenthe

You're welcome - best of luck!

著作者

Hi Yenthe,

i used your script to install odoo 11 in ubuntu, i found odoo.conf in /odoo/odoo-server/debian

i add list_db = False, i restart odoo-server, but nothing happen.

knowing that i do the same thing in odoo 10(under windows) and it work,

Any suggestions

Thanks

db_name = Kasi-master
dbfilter = Kasi-master
list_db = False
Still localhost:8069/web/database/manager listing all the database

最善の回答
<odoo>
<data>
<template id="new_login_layout" inherit_id="web.login_layout" name="Login Layout Inherit">

<xpath expr="//div[@class='col-md-6 col-md-offset-3 o_database_list']" position="before">
<t t-set="disable_database_manager" t-value="1"/>
</xpath>

</template>

</data>
</odoo>
アバター
破棄