Axelor Doc

MasterDetail

For One2Many or many2many, a view can be defined directly under the table with the attribute widget = "MasterDetail." This allows you to edit records in a list directly in the current view without having to open any view.

MasterDetail Exemple 1
<field colSpan="4" title="Address List" name="addresses" widget="MasterDetail">
   <grid title="Address List">
       <field name="street"/>
       <field name="area"/>
       <field name="city"/>
       <field name="zip"/>
       <field name="country"/>
   </grid>
   <form cols="4" title="Address">
       <field name="street"/>
       <field name="area"/>
       <field name="city"/>
       <field name="zip"/>
       <field name="country"/>
   </form>
</field>
Example 2 MasterDetail
<field name="one2many" colSpan="4" widget="MasterDetail" form-view="widgets-demo-standard-form"/>

Field attributes nested views can be changed directly from the current view.

Example:

<action-attrs name="action-contact-hideAddress">
   <attribute name="hidden" for="addresses.country" expr="true"/>
</action-attrs>

MasterDetail