I have a nested field in my XML file and I want to modularize it. For example, I have a model with the field One2many
. When I call the One2many
field in XML, I need to provide the form & tree view.
<!-- Parent Form -->
<record id="view_rm_reservation_form" model="ir.ui.view">
<field name="name">rm.reservation.form</field>
<field name="model">rm.reservation</field>
<field name="arch" type="xml">
<form>
<sheet>
...
...
<!-- One2many -->
<field name="order_line_ids">
<!-- One2many Tree -->
<tree create="1">
...
...
</tree>
<!-- One2many Form -->
<form create="0">
...
...
</form>
</field>
...
...
</sheet>
</form>
</field>
</record>
I want to put the One2many Tree
and One2many Form
into a separate file. How I can do this? Is this even possible?