跳至内容
菜单
此问题已终结
2 回复
4639 查看

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.


形象
丢弃
编写者 最佳答案

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)

形象
丢弃
最佳答案

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.


形象
丢弃
相关帖文 回复 查看 活动
0
7月 25
2029
2
11月 24
7867
2
10月 24
4436
2
8月 24
2482
3
7月 24
8962