Ross Wan's World!

Python, Ajax, PHP and Linux.

[openERP]创建一个纯净的套帐

Posted by Ross Wan 于 2010/01/17

无论你是在客户端的文件菜单上新建一个套帐时选择“不加载演示数据”,还是在修改 openerp-server.conf 文件里的 without_demo = all,openERP 在创建新套帐时都会自动载入演示数据。要创建一个纯净的套帐,必须使用以下的命令行方式:

openerp-server.exe -d dbname -r dbusername -w dbpassword  –db_host=localhost –logfile=”C:\Program Files\OpenERP Server\openerp-server.log” –db_port=5432  -s  –stop-after-init  –without-demo=all

注:dbname 是你新建套帐的数据库名,dbusername 是数据库用户名,dbpassword 是数据库用户密码,logfile 是你指定的 openERP 的日志文件。

have fun!

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

 
%d 博主赞过: