Enable Dark Mode!
how-to-configure-scheduled-actions-and-server-actions-through-the-gui-in-odoo-19.jpg
By: Safa KB

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19

Functional Odoo 19 Configuration

Odoo provides powerful automation tools that allow you to execute logic without writing code directly. Two key features for this are Scheduled Actions (Cron Jobs) and Server Actions. In Odoo 19, these can be fully configured through the GUI, making automation accessible even for functional users.

What Are Server Actions?

Server Actions are automated backend operations that can be triggered manually or automatically. They can:

  • Update records
  • Send emails
  • Execute Python code
  • Trigger workflows

Step 1: Enable Developer Mode

To access these features:

  1. Go to Settings
  2. Scroll down and click Activate Developer Mode

This will unlock technical menu options.

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

Step 2: Create a Server Action

Navigate to:

Settings > Technical > Actions > Server Actions

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

Steps:

  1. Click Create
  2. Fill in the details:
  • Action Name: Name of your action
  • Model: Select the model (e.g., Sales Order, Invoice)
  • Action Type: Choose one of:
    • Execute Python Code
    • Create Record
    • Update Record
    • Send Email

Example: Automatically Confirm Draft Sales Orders

1. Click Create

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

2. Fill in the details:

  • Action Name: Confirm Draft Sales Orders
  • Model: Sales Order (sale.order)
  • Action Type: Execute Python Code

Python Code Example

for record in records:
   if record.state == 'draft':
       record.action_confirm()

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

What This Does

  • It loops through selected sales orders
  • Checks if the order is in Quotation (draft) state
  • Automatically confirms the order (changes to Sales Order)

How to Use It

  1. Go to Sales Module
  2. Open Orders > Quotations
  3. Select one or multiple quotations
  4. Click Action (or Action menu)
  5. Choose Confirm Draft Sales Orders

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

The selected quotations will be confirmed instantly.

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

What Are Scheduled Actions?

Scheduled Actions (also called Cron Jobs) allow you to:

  • Run tasks automatically at specific intervals
  • Execute server actions periodically
  • Automate repetitive business processes

Step 1: Create a Scheduled Action

Navigate to:

Settings > Technical > Automation > Scheduled Actions

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

Steps:

  1. Click Create
  2. Configure the fields:
  • Name: Action name
  • Model: Select model
  • Method: Choose:
    • Python code OR
    • Call a server action
  • Interval Number: e.g., 1
  • Interval Unit: Minutes / Hours / Days
  • Next Execution Date: When it should run next
  • Active: Enable it

Example: Send Reminder Email for Pending Orders

Create Scheduled Action

1. Click Create

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

2. Configure the fields:

  • Name: Send Reminder Email for Pending Orders
  • Model: Sales Order (sale.order)
  • Method: Execute Python Code

Python Code Example    

for order in env['sale.order'].search([('state', 'in', ['draft', 'sent'])]):
    if order.partner_id.email:
        env['mail.mail'].create({
            'subject': f'Reminder: Order {order.name} Pending',
            'body': f'Your order {order.name} is waiting for confirmation',
            'email_to': order.partner_id.email,
        }).send()

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

What This Does

This scheduled action automatically sends reminder emails to customers who have pending sales orders.

Schedule Configuration

  • Interval Number: 1
  • Interval Unit: MInutes
  • Next Execution Date: Set (e.g., tomorrow 00:00)
  • Active: Enabled

This will run once daily and keep your quotations clean.

How to Configure Scheduled Actions and Server Actions Through the GUI in Odoo 19-cybrosys

Through an Odoo 19 GUI, users may easily automate their daily processes without needing to have a significant technical background. By combining the functions of scheduled and server actions, users can benefit from improving workflow and minimizing repetitive work while streamlining business processes.

To read more about How to Create & Configure Server Actions in Odoo 19, refer to our blog How to Create & Configure Server Actions in Odoo 19.


Frequently Asked Questions

Can a Server Action be run manually?

Yes, Users can execute a server action from the appropriate action menu for a selected record.

How often can Scheduled Actions be run?

Scheduled actions may be executed depending upon the defined schedule; they can execute every few minutes or at whatever previously determined interval has been established.

Can a Scheduled Action automatically send email notifications?

Using a preconfigured server action that is appropriate to send mail via a scheduled action, an email can be sent automatically.

If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment



whatsapp_icon
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, KINFRA Techno Park
Kakkanchery, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message