Odoo Help


What is the main difference between the « data » and the « demo » section in the file __openerp__.py????

Pascal Tremblay
on 10/7/15, 11:46 AM 1,280 views

Hello all,

There is two sections in the file __openerp__.py : data and demo

I don't understanad the difference between those two sections????


'data': [




'demo' : [





Thanks to help!

Juan Muñoz
On 10/7/15, 11:51 AM

The demo section is for the demo module. You can add a demo folder in your module and test it before install it.

To use the demo, normally you must concrete it with demo:yes in the openerp.py file or some like that.

And the data section is the real functionality of your module. This one is the important for your own module.

If you see, when you install any module, a 'Demo' checkbox appears in 'Technical data' tab.

Juan Muñoz
on 10/7/15, 11:52 AM

THANKS! exactly what I needed!

Pascal Tremblay
on 10/7/15, 12:41 PM

Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/7/15, 12:23 PM

When you create a new database in the create form there is a checkbox named "Load demonstration data", if you ckeck it Odoo will use demo in the __openerp__.py of the modules that you install to load data records for the demo

Thanks Axel!

Pascal Tremblay
on 10/7/15, 12:42 PM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 10/7/15, 11:46 AM
Seen: 1280 times
Last updated: 10/7/15, 12:42 PM