Odoo Help

1

Difference between init_xml,updata_xml,data fields

By
Anuradha
on 8/1/13, 3:41 AM 2,029 views

What is the difference between init_xml,update_xml,data fields used in __openerp__.py file ?

2

Vasiliy Birukov

--Vasiliy Birukov--
Vasiliy Birukov
http://codup.com
3476
| 6 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 8/1/13, 4:11 AM

init_xml and update_xml deprcated parameters, use for new modules data instead.

  • init_xml - list of XML files with data that will load to DB at moment when you install module.
  • update_xml - list of XML files with data that will load to DB at moment when you install or update module.
  • data - list of XML, CSV or YAML files with data that will load to DB at moment when you install or update module. XML data file can have as install data and update data. It control by attribute noupdate of tag data.

    <openerp>
        <data>
            {install and update}
        </data>
        <data noupdate="1">
            {only install}
        </data>
    </openerp>
    

Thank you wowas

Anuradha
on 8/1/13, 6:31 AM

Hello wowas, It means both 'update_xml' and 'data' loads your data during installation of module as well as updation of module the only difference is 'data' provides facility to load data in either case. Is it true or am i misunderstood? Thanx.

Pooja Zankhariya
on 1/23/14, 7:26 AM

But if you only use the "data" tag, how do you say noupdate on a csv?

Limitless Virtual Enterprise, Andre de Kock
on 8/14/15, 4:42 AM

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

Question tools

0 follower(s)

Stats

Asked: 8/1/13, 3:41 AM
Seen: 2029 times
Last updated: 3/16/15, 8:10 AM