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
4 Answers
6
Best Answer
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
Best Answer
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