Odoo Help


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.


Install modules without demo data

Xiang Li
on 9/19/14, 11:44 AM 1,732 views

I want to create a database with only the technical features. I set "without demo = all" in my config file. But it seems doesn't work. The demo data still appears when I try to install my first module like 'warehouse management' on a new database.

I know in __openerp__.py of every module, there is a "demo" field. but some module has a lot dependencies, I can not comment all "demo" fields.

Is there a better way to disable demo data?

On 10/6/15, 9:10 PM

In the command line, type

./odoo.py --help

You will see that the syntax should be


In config file, it should be

On 10/6/15, 9:46 PM

--without-demo=all does not work at all. It good to test it with hr module.

It is extreme solution, but works for hr module on Ubuntu 14.04

cd  ${HOME}/odoo 
cp addons/hr/__openerp__.py addons/hr/__openerp__.py.orig
perl -pi -e 's/^(.*)(demo)(.*)/# ${1}${2}${3}/' addons/hr/__openerp__.py
cat addons/hr/__openerp__.py
Anass Ahmed
On 10/6/15, 7:18 PM

I think you should recreate your database from scratch (if you use database manager, just don't check the demo data checkbox).

If you use the service from command line (or just have access to the configuration file), so the right syntax is:


or with the command line:


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

2 follower(s)


Asked: 9/19/14, 11:44 AM
Seen: 1732 times
Last updated: 5/19/16, 6:25 AM