Community mailing list archives

community@mail.odoo.com

Re: Don't Show DB list when go to domain

by
Md. Tanzilul Hasan Khan
- 09/23/2016 00:18:27
Thanks. It's working but now I can't see the other testing databses if I goto /web/database/selector . Only one DB shows there (the production one). If I want to go to different DB I need to change the conf file.

Regards,
Tanzil





On Thu, Sep 22, 2016 at 3:09 PM, robert rottermann <robert@redcor.ch> wrote:

you have to do it in your openerp-server.conf config file like so:

[options]
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons,/mnt/extra-addons/crm_oca,/mnt/extra-addons/partner-contact,/mnt/extra-addons/cms-dms,/mnt/extra-addons/therp-addons
without_demo = all
data_dir = /var/lib/odoo
auto_reload = True
; admin_passwd = admin
; csv_internal_sep = ,
; db_maxconn = 64
; db_name = False
; db_template = template1
; dbfilter = .*
; debug_mode = False
; email_from = False
; limit_memory_hard = 2684354560
; limit_memory_soft = 2147483648
; limit_request = 8192
; limit_time_cpu = 60
; limit_time_real = 120
list_db = False
db_name = XXX   <------------------------------
dbfilter = XXX      <------------------------------
; log_db = False
; log_handler = [':INFO']
log_level = info
logfile = /var/log/odoo/odoo_log
; longpolling_port = 8072
; max_cron_threads = 2
; osv_memory_age_limit = 1.0
; osv_memory_count_limit = False
; smtp_password = False
; smtp_port = 25
; smtp_server = localhost
; smtp_ssl = False
; smtp_user = False
; workers = 0
; xmlrpc = True
; xmlrpc_interface =
; xmlrpc_port = 8069
; xmlrpcs = True
; xmlrpcs_interface =
; xmlrpcs_port = 8071


On 22.09.2016 02:33, MD Tanzilul Hasan Khan wrote:
db-filter = DATABASE_NAME thats it.

Isn't there any way to do that from odoo without editing in htaccess?

Regards.





On Wed, Sep 21, 2016 at 11:07 PM, Günter Selbert | sewisoft UG <guenter.selbert@sewisoft.de> wrote:
Show us your db-filter! Name your db eg www and make in the htaccess a redirect rule to www.yourdamain.com. But you have to exclude domains linke yourdomain/web/database/manager to access the other databases ;) hope this helps ;)

Am 21.09.2016 um 17:33 schrieb MD Tanzilul Hasan Khan <ponkhi403@gmail.com>:

hello,

I have three databases, one production, one test and one for demo.

My instance has a website. So, when visitor comes to domain they see the DB list instead of website. How can I filter the production database by default? I used db-filter in conf file but didn't work.

Regards,
--
MD. Tanzilul Hasan Khan.




_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
MD. Tanzilul Hasan Khan.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
MD. Tanzilul Hasan Khan.