Action

The N2 Action module provides additional controls for creating Odoo automation. It allows you to define triggers that respond to method calls and server actions, create reusable workflows, and customize the user interface by adding form view headers, buttons, and status bars.

Dependencies

This module depends on the following modules *:

  • n2
  • n2_ui
  • n2_trigger
  • n2_data

*Built-in modules not listed

ActionNode

Executes server action on one or more records of a model.

Parameters

  • ids Eval
  • model Raw
  • record_ids Raw

RunNode

Runs another workflow graph from within the current workflow. Useful for modularizing automation by reusing existing graphs.

Parameters record_id Raw

OnActionTriggerNode

Executes the workflow when a specific server action is called. This is used to extend standard Odoo actions with additional custom behavior.

Parameters

  • model Raw
  • record_ids Raw

OnMethodTriggerNode

Executes the workflow when a particular method on a model is called. This node allows automation to respond to business logic changes.

Parameters

  • model Raw
  • method_name Raw

CodeServerActionStarterNode

Creates a new server action that executes Python code. This node is used to programmatically define automation logic without creating a new Odoo module.

Parameters

  • model Raw
  • name Raw
  • code Raw
  • use_existing Raw
  • remove_on_reset Raw

ViewHeaderStarterNode

Adds a custom header to a form view. This can include status bar or action buttons.

Parameters

  • model Raw
  • view_id Raw
  • group_ids Raw
  • invisible Raw
  • use_existing Raw
  • remove_on_reset Raw

StatusBarStarterNode

Adds a status bar to a form view header. This can display workflow status, progress, or other indicators relevant to the user.

Parameters

  • model Raw
  • field_name Raw
  • group_ids Raw
  • visible Raw
  • invisible Raw

FormActionButtonStarterNode

Adds a clickable action button to a form view header to trigger server actions.

Parameters

  • model Raw
  • action_id Raw
  • group_ids Raw
  • disabled Raw
  • icon Raw
  • caption Raw