Core Modules

The n2 and n2_ui modules are the core of N2. Together they provide the base framework and the core functionalities to enable visual automation on Odoo. ​

ConditionalNode

Define conditions that determine the next node in the workflow, allowing for decision-based branching.

Parameters

  • condition Eval: Expression to determine the next node. ​

ForLoopNode

Execute a sub-process repeatedly using a for-range loop, useful for iterating over a specific number of steps.

for i in range(<start_value>, <end_value>, <step>)

Parameters

  • start_value Raw
  • end_value Raw
  • step Raw

LogNode

Output log messages at any point in the workflow, providing transparency and debugging support.

Parameters

  • tag Raw: Used as prefix for logging.

LoopNode

Loop through a sub-process with a for-in loop, iterating over items in a collection.

for item in <iterable>

Parameters

  • iterable Eval

LooperNode

Mark the starting point of a loop sub-process, facilitating structured iteration within workflows.

MergeNode

Combine data from multiple nodes into a single output, streamlining data integration. ​

SpreadNode

Repeat sub-processes with the same parameters, enabling parallel or repetitive operations efficiently. ​

StartNode

Indicate the beginning of a workflow, establishing a clear entry point for automation.

Parameters

  • parameters Dict

ValueNode

Set or pass values to be used by subsequent nodes, allowing dynamic data handling throughout the workflow.

Parameters

  • value Eval