Skip to content

originrock/odoo_automations_python

 
 

Repository files navigation

🛠️ 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

  1. Go to SettingsTechnicalAutomationScheduled Actions.
  2. 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
  3. Paste the desired Python script from this repo into the Python Code field.
  4. Click Save and Activate the action.

🔒 Security

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.

🤝 Contributing

Feel free to submit issues or open pull requests with improvements, new automation use cases, or bug fixes.

Repository Structure

📂 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  

License

MIT License – Free to use and modify.


Contribute or Report Issues
Feel free to fork, improve, or suggest enhancements!

Powered by Hsx TECHCollaborate, Lead, Innovate

About

This is a repo of all the Odoo Automations to create Tickets and Entries via survey data is generated, the code is python mostly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%