Odoo Help

Welcome!

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.

0

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

By
Pascal Tremblay
on 10/7/15, 11:46 AM 632 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': [

        'data/menus_lapagept_iv.xml',

        'data/menus_lapagept_pt.xml',

],

'demo' : [

        'demo/website.xml',

        'demo/template.xml',

],

[...]


Thanks to help!

2
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
2

Axel Mendoza

--Axel Mendoza--
10203
| 7 7 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 an 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

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)

Stats

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