🛠️ Odoo Automation Scripts
This repository contains Python scripts intended for use with Scheduled Actions in Odoo, enabling automation of business logic, notifications, data updates, and more without the need for custom modules.
📌 About
These scripts are designed to be executed directly within Odoo’s “Automated Actions” → “Execute Python Code” feature, making it easy to automate workflows, maintain data integrity, and trigger time-based events.
Each script is standalone and documented with usage instructions and dependencies (if any).
✅ Features
- 🔄 Automate record updates based on conditions
- 📨 Trigger emails or notifications
- 📅 Handle date-based events (e.g., overdue, expiry, follow-ups)
- 📊 Ensure data consistency across models
- ⚙️ Lightweight and plug-and-play
🚀 Usage
- Go to Settings → Technical → Automation → Scheduled Actions.
- Click Create and set your:
- Model (e.g.,
crm.lead,project.task, etc.) - Interval Number and Unit of Time
- Action To Do: Select
Execute Python Code
- Model (e.g.,
- Paste the desired Python script from this repo into the Python Code field.
- Click Save and Activate the action.
Always validate your scripts before applying them in production environments. Scheduled Actions run with superuser permissions, so make sure:
- You validate filters and domain logic.
- You handle exceptions properly.
- You test on a staging environment first.
Feel free to submit issues or open pull requests with improvements, new automation use cases, or bug fixes.
📂 Odoo_Automations_Python/
├── README.md
├── Odoo_Survey_to_CRM.py
├── Odoo_Event_to_Calender.py
├── Odoo_Survey_to_Contact.py
└── Survey to Tickets with Email and Priority.py
MIT License – Free to use and modify.
Contribute or Report Issues
Feel free to fork, improve, or suggest enhancements!
Powered by Hsx TECH – Collaborate, Lead, Innovate