Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/17/13, 11:07 PM|
|Seen: 25824 times|
|Last updated: 11/5/16, 6:29 AM|