Odoo Help

Welcome!

This community 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.

0

odoo 10 Database Filter Error

By
Chau Le
on 10/18/16, 9:43 AM 315 views

Hello i have question anyone help plz 

i have install odoo 10 but cannot add filter to config file 

dbfilter = ^%h$

list_db = False

it work for subdomain but when i try to add www.domain.com it didn't work. plz help.


0
Chau Le
On 10/18/16, 9:04 PM

Hello i try like this but it seem to be doesn't work.

# WEB

group = optparse.OptionGroup(parser, "Web interface Configuration")

#comment the original code by Chau Le

#group.add_option("--db-filter", dest="dbfilter", my_default='.*',

group.add_option("--db-filter", dest="dbfilter", my_default='-',

help="Filter listed database", metavar="REGEXP") parser.add_option_group(group)

0
axatech01@gmail.com
On 10/18/16, 4:57 PM

Try to edit /usr/lib/python2.7/site-packages/odoo/tools/config.py and change:


From:

# WEB        group = optparse.OptionGroup(parser, "Web interface Configuration")        group.add_option("--db-filter", dest="dbfilter", my_default='.*'.

To:

# WEB        group = optparse.OptionGroup(parser, "Web interface Configuration")        group.add_option("--db-filter", dest="dbfilter", my_default='-'.

...and then restart your Odoo.


Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/18/16, 9:43 AM
Seen: 315 times
Last updated: 10/18/16, 9:04 PM