Axelor Doc

Actions view

Action View ( action-view ) allows to link an event and the desired view.

Here is a sample schedule for:

<action-view title="Calendar view" model="com.axelor.demo.widgets.db.DemoCalendar" name="widgets.actions.demo-calendar.calendar">
    <view type="calendar" name="widgets-demo-calendar-calendar"/>
    <view type="form" name="widgets-demo-calendar-action-view-code-form"/>
    <view type="grid" name="widgets-demo-calendar-grid"/>
    <view-param name="eventLength" value="1"/>
    <domain>self.confirmed = true</domain>
    <context name="action_name" expr="widgets.actions.demo-calendar.calendar"/>
</action-view>

Items view , view-param , context and domain used to specify the desired behavior.

The order of defining views is important
Be careful when entering items view . The views must be declared in the desired order. In our example, the calendar view is displayed first. It is thus the default view for this action.