buke / GreenOdoo

Portable Odoo (formerly OpenERP)
www.greenodoo.com
136 stars 116 forks source link

默认启动某数据库 #3

Closed k0432 closed 10 years ago

k0432 commented 10 years ago

启动8.0时不用选择数据再进入项目,能不能默认启动某数据库。

buke commented 10 years ago

可以。 配置参数 https://github.com/buke/GreenOdoo/blob/master-win32/source/openerp/tools/config.py#L212 group.add_option("-d", "--database", dest="db_name", my_default=False, help="specify the database name")