This question has been flagged
3 Replies
5167 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!

Avatar
Discard
Best Answer

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.

Avatar
Discard

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

Author

THANKS! exactly what I needed!

Best Answer

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

Avatar
Discard
Author

Thanks Axel!