Axelor Doc

Management menu

The menu can be configured as required and use.

It allows:

  • Organize menu entries by folder, subfolders, etc.
  • Involve in view several menu entries by filtering.
  • Menu to filter the entries according to the logged in user

Each entry is associated with a menu action. Action defines the view to open and / or the filter to apply.

Tags:

  • <menuitem> : File / Input menu
  • <action-view> : Identifies the view to open.

Example:

<menuitem name="contact-root" parent="" title="Partner" icon="evo-icons/partner.png"/>

<menuitem name="contact-root-partner" parent="contact-root" title="Partners" action="contact.root.partner"/>

<action-view name="contact.root.partner" title="Partners"
   model="com.axelor.apps.contact.db.Partner">
   <view type="grid"/>
   <view type="form"/>
</action-view>

menu

The "folder Tiers "is the <menuitem> " touch-root . " In this case, is attached a menu entry " The Tiers "corresponding to <menuitem> " touch-root-partner . " This entry menu requires action " contact.root.partner "through the tag <action-view> .

The attributes are:

<menuitem>

  • name : Technical Name
  • title : Label
  • parent : Parent folder name attached to. If empty, then the entry will be positioned at the root
  • icon : Icon associated
  • group : Defines allowed access to this menu user groups. The groups are separated by commas
  • priority : Sets the priority sequencing menus. The higher the priority, the higher the menu entry will be at the top (first)
  • action : Action to call

<action-view>

  • name : Name of the action
  • title : Label
  • model : Object associated
  • view : Defining the grid view and form the name of the view to open
  • domain : The filter to apply
  • context : Defines some parameters to be used in the domain.
  • view-param : Additional parameters of sight. The client uses these parameters when building the view.

view-param may contain the following options:

  • Hide the toolbar in the view of the bar form.
    <view-param name="show-toolbar" value="false" />
    
  • Adds a filter to advanced search. search-filters is the name of a filter (tag search-filters ).
    <view-param name="search-filters" value="filter-contract-line-filters"/>
    

context may include the following options:

  • Variables used by the domain
    <domain>self.user = :user</domain>
    <context name="user" expr="eval: __user__"/>
    
  • Opens one returned by the query recording directly
    <context name="_showSingle" expr="true"/>
    
  • Open registration data by id.
    <context name="_showRecord" expr="6"/>
    
  • Checks if the current form view record was changed when the user returns to the form.
    <context name="__check_version" expr="true"/>