Once the search is complete, you can view information from one of the grid lines of research and open another view for a particular treatment.
Double clicking on a row in the grid research opens the corresponding record with its default view.
The tag form-view tag <select> can set a different view. This view is customizable for each object.
On a search view, 3 fields are defined in the view:
These three fields are used to organize and run a particular view, passing items to the context.
Example:
<action-menu name="category-1" title="Category 1"/>
<action-menu name="category-2" title="Category 2"/>
<action-menu name="sub-category-11" parent="category-1" title="Sub Category 11"/>
<action-menu name="sub-category-12" parent="category-1" title="Sub Category 12"/>
<action-menu name="sub-category-13" parent="category-1" title="Sub Category 13"/>
<action-menu name="sub-category-21" parent="category-2" title="Sub Category 21"/>
<action-menu name="sub-category-22" parent="category-2" title="Sub Category 22"/>
<action-menu name="create-partner" parent="sub-category-11" title="Create Partner..." action="contact.all"/>
<action-menu name="create-sale-order" parent="sub-category-11" title="Create Sale Order..." action="sale.orders"/>
<action-menu name="create-partner-12" parent="sub-category-12" title="Create Partner... (12)" action="contact.all"/>
<action-menu name="create-sale-order-13" parent="sub-category-13" title="Create Sale Order... (13)" action="sale.orders"/>
<action-menu name="create-partner-13" parent="sub-category-13" title="Create Partner... (13)" action="contact.all"/>
<action-menu name="create-sale-order-21" parent="sub-category-21" title="Create Sale Order... (21)" action="sale.orders"/>
<action-menu name="create-partner-22" parent="sub-category-22" title="Create Partner... (22)" action="contact.all"/>
The shares will be split automatically based on tags relatives in the appropriate fields. The "Go" button will call the appropriate action.
The element passed in context is a variable _ref : It contains the action started and the fields of grid search of the selected line of sight.
Example:
"context":{
"_model":"com.axelor.sale.db.Order",
"_ref":{
"_action":"sale.orders",
"id":4,
"_model":"com.axelor.contact.db.Contact",
"company":null,
"_modelTitle":"Contact",
"_form":null,
"customer":"My Name",
"date":null,
"_grid":null,
"version":17,
"_id":4
}
}
These 3 selects may include another view. The name must start with a $ and widget = "ActionSelector " must be defined:
<field name="$dummy1" widget="ActionSelector" colSpan="4"/>
or filter by category:
<field name="$dummy2" widget="ActionSelector[category=cat1]" colSpan="4"/>