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

Sandeep

--Sandeep--
6123
| 6 5 8
Delhi, India
--Sandeep--
Python OpenERP Developer http://in.linkedin.com/pub/sandeep-rana/3b/a16/786/
Sandeep
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.--
4565
| 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
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

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.

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: 2577 times
Last updated: 11/23/15, 7:01 AM