Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2082 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง