Axelor Doc

Editable lists

The views lists can be edited. The default view type is not editable.

For this, the attribute editable = "true" must be defined in the view definition:

<grid name="contact-grid" title="Contacts" editable="true">
       <field name="fullName"/>
       <field name="firstName"/>
       <field name="lastName"/>
</grid>

When the view is editable, clicking a cell lets you edit the field. Editable lists

When a list is editable, an online "space" appears in the table. This inserts a new record.

The following fields can be edited:

  • All "traditional" fields
  • M2O
  • M2M O2M: In this case, the list view appears. In the list being edited, the number of records appears in parentheses (here (2) means the number of registration of M2M "Taxes").

Editable lists

The fields defined in the list view can also set the following attributes:

  • "readonly": The field will not be editable
  • "onChange": Action to change the field
  • "domain" to apply Filte
  • "onSelect": Action to selection

When a field has been changed, the left corner of it appears in red, alerting the user that it has changed. Editable lists

The keyboard combination CTRL + ENTER to validate the changes and save the view afterwards.