Friday, March 26, 2021
2 changes · master
New functionality added to Odoo
Project teams can now define which tasks must be completed before others can start. This helps managers and team members plan work in the right order, avoid confusion, and prevent circular dependency setups.
Original PR description
Purpose ====== Sometimes, a task can only be completed once another is (e.g. 'install boiler' can only be done once 'order boiler' is complete). Communicating this information is key to organize a…
Purpose
======
Sometimes, a task can only be completed once another is (e.g. 'install boiler' can only be done once 'order boiler' is complete). Communicating this information is key to organize a project and for the users to know on what they can start working when.
## Settings in Project App
- Add a 'Task Dependencies' setting under the 'Tasks Management' section
- Add the same setting on the project form view.
- As for the sub-tasks feature, enabling this feature in the settings of the app, should enable it on all existing and newly created projects with is_fsm = false.
## Task form view
- Add a 'Blocked by' notebook.
- In this notebook:
- add new many2many field called *depend_on_ids* containing the tasks in which the current task depends on these tasks with the following fields displayed by default: name, user_id, date_deadline, stage_id.
- add a 'view task' button on each line that should open the corresponding form view.
- Filter task list for depend_on_ids Many2many field.
- Check no cyclic task dependencies.
task-2387984
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prProject teams can now better plan work by seeing task dependencies in forecasts and using a Gantt view for tasks outside Field Service. The update also keeps Field Service projects separate from standard project dependency settings and improves scheduling defaults based on working calendars.
Original PR description
Purpose ====== Sometimes, a task can only be completed once another is (e.g. 'install boiler' can only be done once 'order boiler' is complete). Communicating this information is key to organize a project and for the users to know on what they can start working when. ## Settings Project App - Filter the projects to update when the task dependencies feature is enabled in the Project App Settings. We want to check the task dependencies in all existing projects and newly created with is_fsm = False. ## Task views - Add a gantt view on project.task (as in fsm planning, we should display time off in grey and compute default start/end dates based on the company/resource calendar). - The 'hours forecast' stat button should display the shifts linked to the current task + the blocked by tasks + their respective sub-tasks. task-2387984 Community PR: odoo/odoo#66740 Upgrade PR: odoo/upgrade#2203