Axelor Doc

Context

The context is an array of key-value that includes the content of the current view.

If it's an open view from a parent view, "_parent" key will retrieve the context of the parent object.

For Human fields (One2Many and many2many), the "_selected" key will be "true" for the selected lines.

Example of context:

Context:  {
    __me__=com.axelor.meta.ActionHandler@1574409e,
    _model=com.axelor.vente.db.AccountV,
    __user__=User{id=2, code=admin, name=Administrator, password=admin},
    __self__=AccountV{id=null, code=null, name=null},
    __this__=AccountV{id=null, code=null, name=null}
}

Key details:

  • __me__: Action taken
  • _model: Package name
  • __user__: User who performed the action
  • __self__: Object underway, with the values of the current view
  • __this__: Object underway, with the values base