PROJECT CLOSING GUARD FOR ODOO 18, 19 & 20
No task is done
while its prerequisites are open.
A closing guard for the standard task dependencies. A task cannot be marked Done, or moved to a folded stage, while a task it is blocked by is still open. Project managers can override and the override is logged.
Depends only on ProjectWorks with the standard Blocked By tabManager override written to the chatter

2
closing paths guarded
1
manager override
7
automated tests
How it works
From setup to result

1
Add prerequisites as usual
Use the standard Blocked By tab. A banner on the form reminds users that the task cannot be closed yet.
What you get
Features
Closing guard
Marking a task Done is refused while any prerequisite is still open; the message lists them.
Folded stages
Optionally guard moves into folded stages too (company setting).
Manager override
Project managers can close anyway; the chatter records who and which tasks were open.
Filter
An Open Prerequisites filter finds tasks that are still blocked.
Use cases
Where it helps
Fit-out and construction
Joinery cannot be signed off before the drawings are approved.
Delivery projects
Release tasks stay open until QA tasks are closed.
Requirements
- Odoo 18, 19 or 20, Community or Enterprise
- Depends on project
- Task Dependencies enabled on the project
Good to know
- The standard cycle check of task dependencies still applies.
- Cancelling a task is not blocked.
- Programmatic writes by the superuser are not blocked.
FAQ
Frequently asked questions
Does it add its own dependency field?
No. It uses the standard Blocked By field, so nothing is duplicated.
What if dependencies are off for a project?
Then the guard does nothing for that project.
No task is done
Questions or a specific process in mind? Use Contact the Author on this page.
By Ahmed Khalil, independent Odoo developer
Odoo is a trademark of Odoo S.A. This app is independent, not affiliated with or endorsed by Odoo S.A.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module