Odoo Help

5

where to put my model_view.xml in init.xml or update.xml [Closed]

By
Atchuthan
on 5/20/13, 5:46 AM 2,907 views

The Question has been closed

by
Atchuthan
on 06/11/2013 07:20:58
In __openerp__.py file in a module, there are two fields with init.xml and update.xml. After observing various custom modules and inheritance concepts in OpenERP 7,  I came to conclusion that:
    - If inherit==name: put the model_view.xml to update.xml
    - If inherit!=name: put the model_view.xml to init.xml

Is my conclusion correct..? If any additional info give me suggestion
6

ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
6143
| 6 5 8
Delhi NCR, India
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
On 5/20/13, 6:03 AM

Hi atchuthan

all the view file must be in

 'data': [
        'my_view.xml',

],

in __openerp__.py descriptor in version 7.0

'update_xml': ['my_view.xml'],

in __openerp__.py descriptor in version 6.1

Thanks

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4693
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 5/20/13, 6:08 AM

Hello,

The xml file should be registered in the __openerp__.py file, inside that you can find “data” (for v7)which holds all the view files(*.xml).

Thanks,

Serpent Consulting Services

0

saad

--saad--

1018
| 5 4 8
Casablanca, Morocco
--saad--
saad
On 5/20/13, 6:01 AM

In V7 init and update fields have been remplaced by data field.
It's used for inherit and not inherit views.

0
Christian Twinckle
On 5/20/13, 9:12 AM

Now, in V 7.0 you can put your mode_view.xml file into "data" section of __openerp__.py

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: 5/20/13, 5:46 AM
Seen: 2907 times
Last updated: 11/23/15, 7:01 AM