Odoo Help

2

0
2 Answers
2
Avatar

Serpent Consulting Services Pvt. Ltd. India

--Serpent Consulting Services Pvt. Ltd.--
Serpent Consulting Services Pvt. Ltd.
http://www.serpentcs.com
5053
| 7 6 10
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. is an Official Odoo Partner, working on Odoo ever since 2007, experience of 11+ years and witnessed the growth of Odoo.

We are a team of 80+ experts on various verticals. Our portfolio of products can be seen at http://www.serpentcs.com and http://www.serpentcs.in

Our Expertise and Services:

  • Odoo Support

  • Odoo Development

  • Odoo Training

  • Odoo Migration

  • Odoo Implementation

  • Odoo Consulting

Our 290+ Apps on Appstore : https://apps.odoo.com/apps/modules/browse?author=Serpent Consulting Services Pvt. Ltd.

Thanks.

Serpent Consulting Services Pvt. Ltd. India
3/19/13, 2:11 AM

Hello,

"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.

1 Comment
qwq Russian Federation
3/21/13, 1:27 AM

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.

4
Avatar

Vasiliy Birukov Russian Federation

--Vasiliy Birukov--
3606
| 8 6 10
Togliatty, Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov Russian Federation
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.

2 Comments
priyankahdp Sri Lanka
3/14/13, 2:14 AM

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

Vasiliy Birukov Russian Federation
3/15/13, 2:11 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.

Ask a Question
Writer
Keep Informed
0 follower(s)
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.

Register
Odoo Training Center

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

Test it now