Skip to main content

Auto-change task state (done/canceled) after N days on selected stages

Project description

Odoo Community Association

Project Task Stage Auto State

Alpha License: LGPL-3 OCA/project Translate me on Weblate Try me on Runboat

Automatically change task state (done or canceled) after they remain in a stage for a configured number of days.

Key features:

  • Configure auto-done days per stage with states that you want to apply.

  • Configure auto-cancel days per stage with states that you want to apply.

  • Automatic message posted in task chatter

  • Daily scheduled action to process tasks

  • Only open tasks are processed (closed states are ignored)

Table of contents

Use Cases / Context

This module is useful in workflows where tasks need to be automatically closed after a certain period of time in a stage.

Common use cases:

  • Auto-done: Approval workflows where silence means consent after N days

  • Auto-done: Service level agreements (SLA) with automatic closure when completed

  • Auto-cancel: Timeout periods where tasks expire if no action is taken

  • Auto-cancel: Cleaning up stale tasks in waiting or review stages

Usage

To use this module, you need to:

  1. Enter debug mode

  2. Go to Project > Configuration > Task Stages

  3. Select or create a stage

  4. Configure the automatic actions:

    • Set “Auto-mark as done after days” to the desired number of days (0 to disable)

    • Activate shown boolean fields for states that you want to do something

    • Set “Auto-cancel after days” to the desired number of days (0 to disable)

    • Activate shown boolean fields for states that you want to do something

  5. Verify that the scheduled action “Project: Auto-change task state by stage” is active in Settings > Technical > Automation > Scheduled Actions

  6. When a task is auto-changed, a message is posted in the chatter indicating the automatic action

Notes:

  • The counter starts from the “Last Stage Update” date, which is updated each time a task changes stage

  • If both auto-done and auto-cancel are configured for the same stage and both thresholds are reached, auto-done takes precedence

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Moduon

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

Shide rafaelbn

This module is part of the OCA/project project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_project_task_stage_auto_state-18.0.1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_project_task_stage_auto_state-18.0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eec32dcfeb366fad73f3eca902b072f4b0a78c3f6057671a68ca9175d2266b85
MD5 a9118da0e501b5450cba8ed3922c3c1e
BLAKE2b-256 15fbc8adf9b2fca130b0958f9f0861920fe19a7627e9a1aa1c264205aef05620

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page