跳至內容
選單
此問題已被標幟
2 回覆
4635 瀏覽次數

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
2028
2
11月 24
7866
2
10月 24
4433
2
8月 24
2482
3
7月 24
8960