Actualy, I posted the same question here () But Since it got no response .. I repost it here, I apologie for this.
Version : OpenErp 7
I create 2 db : db1 and db2
I also have hostname setup on my dns server ; db1.erp.bno db2.erp.bno
and in my /etc/openerp/openerp-server.conf , I put :
list_db = False To disable the DB choice list, and db_filter=^%d$ In hope that web UI will select the db in regards of hostname (first part of FQDN)
But both didn't work ,the DB choice list still there.
My installation is in ubuntu using apt-get
Kindly please give me your enlighten
This a known bug with a fix of 3 characters. https://bugs.launchpad.net/bugs/940439
Just change in config.py the line where it adds the dbfilter option from: group.add_option("--db-filter", dest="dbfilter", default=".", to group.add_option("--db-filter", dest="dbfilter", my_default=".",
There is a merge proposal in the bug with this change, but is too hard to do that :)
That is bug already know, as Danimar says
But I think hack the code is always not a good option.
You can use server startup with parameter --db-filter as: '%d' or '^%d' or even '^%d$'
The value is a regular expression, you may use %d for a hostname part of domain or %h to full domain name.
domain = hostname.domainname.com
OpenERP replaces like:
%d = hostname %h = hostname.domainname.com
The '^' means start of line and the '$' end of line, so '^%d$' only filter db with name 'hostname' following the example.
Starting the server with:
Filter name of any db starting with "hostname" domain part.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/17/13, 11:07 PM|
|Seen: 22341 times|
|Last updated: 3/17/16, 9:45 AM|