Skip to Content
Menu
This question has been flagged
1 Reply
1745 Views

Hello I am still quite new to odoo and i try to learn by studying all the odoo modules.

One thing I noticed is that view.xml files can get very large and I was wondering why it is not done to split them up? I created subdirectories for each model under 'views' and created separate files for form.xml, tree.xml and kanban.xml. 


This seems to be working just fine but nobody does that, so my question: is there a good reason to put everything in one file?

Avatar
Discard
Best Answer

It does not matter if all views are in a single file or in multiple files or have multiple XML files for each view/object because the loading time of the single/multiple files will be similar.

Normally we create an XML file (having all views) for each object.

Avatar
Discard