Odoo Help


what is 'data' field in __openerp__.py file [Closed]

on 3/14/13, 12:46 AM 2,672 views

The Question has been closed

on 04/18/2013 07:31:06
    'name' : "OpenAcademy",
    'version' : "1.0",
    'author' : "OpenERP SA",
    'category' : "Tools",
    'depends' : ['mail'],
    'data' : [
    'demo' : [
    'installable': True,

please tell me what is the usage of that 'data' field. if you can please show & explain the sample using student module



"data" field in v7 is same as "update_xml" field in v6.1. You can also write "update_xml" instead of "data" in v7.

This field is list of .xml files to load when the server is launched with the “–update=module” launched. Filepaths must be relative to the directory where the module is. OpenERP XML File Format is detailed in this section.

Thanks, Serpent Consulting Services.

DATA not the same as UPDATE_XML. It can load data only at INSTALL or always (depending from attribute of record), but UPDATE_XML load always. Always mean INSTALL and UPDATE. For new modules better use DATA, because UPDATE_XML will deprecated.

on 3/21/13, 1:27 AM
Vasiliy Birukov
On 3/14/13, 1:39 AM

It describe list of files (CSV, YAML or XML) with data, that load to DB when module install or update.

thanks wowas, then what is the usage of it.? is it like __openerp__.py depends field.?it also load the data.isn't it.?

on 3/14/13, 2:14 AM

If you need use in module, for example, file FILENAME.XML you must add it to DATA list in __openerp__.py: 'data' : [ 'filename.xml', ], then when you install or update your module system will scan this file. DEPENDS list cause that system will install pointed modules, when you install your module.

Vasiliy Birukov
on 3/15/13, 2:11 AM

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

0 follower(s)


Asked: 3/14/13, 12:46 AM
Seen: 2672 times
Last updated: 3/27/15, 5:35 PM