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.

1

Difference between init_xml,updata_xml,data fields

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

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

2

Vasiliy Birukov

--Vasiliy Birukov--
3446
| 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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