Triggers Nodes
Trigger nodes are used to initiate automation flows when specific events occur in the system. These events can be based on time, data changes, or external interactions.
Types of Triggers
The nuido_flow_trigger
module supports several types of triggers for initiating automation flows:
Time-Based Triggers
Time-based triggers utilize Odoo's cron jobs to periodically execute flows at defined intervals. This type of trigger is ideal for tasks that need to be performed on a regular schedule, such as sending periodic reports.
- Use
OnScheduleTriggerNode
for implementing time-based flows.
Record Operation-Based Triggers
These triggers respond to operations carried out on Odoo model records—specifically when a record is created, modified, or deleted. They achieve this by patching the relevant model methods to execute flows when these operations occur.
- Use
OnCreateTriggerNode
for running the flow when a new record is created. - Use
OnEditTriggerNode
to run the flow when an existing record undergoes modification. - Use
OnDeleteTriggerNode
to initiate the flow when a record is marked for deletion.
External Triggers
External triggers allow flows to be initiated by events happening outside of Odoo, such as incoming webhooks. This enables integration with various third-party services.
- Use
OnWebhookTriggerNode
if you want to provide an endpoint for receiving the webhook.
Availability
The source code for nuido_flow_trigger
can be accessed at the Exploring Odoo github repository.
CAUTION
nuido_flow_trigger
is experimental.
It is not recommended for use in production environments.