documentation/content/applications/services/project/tasks/sub_tasks.rst
Antoine Vandevenne (anv) 6f125de01b [MOV] content/*: move resource files into their related page's directory
Since odoo/documentation#903, the guideline for the location of new
resource (images, downloadable files, RST includes...) files is to place
those inside the directory of the RST page that references them.

For example, if `doc1.rst` has a reference to `image.png` and to
`download.zip`, the file structure should look like this:

├── parent_doc/
│     └── doc1/
│     │     └── image.png
│     │     └── download.zip
│     └── doc1.rst
│     └── doc2.rst
├── parent_doc.rst

Before this commit, most of the resource files were still located inside
'media' directories holding all the resource files referenced by RST
pages located at the same level as these directories. In the example
above, a single 'media' directory would hold all the resource files
referenced by both `doc1.rst` and `doc2.rst`. Doing so prevented us from
figuring out easily which resource file was referenced by which RST page
and, thus, lead to unused resource files piling up in the repository. It
also made it more complicated to define codeowners regex rules because a
team could not simply be assigned to `/some_page.*` but needed to be
assigned to both `/some_page\.rst` and to the location of 'media'.

In order to help new content writers figure out the guideline when
taking examples from other RST pages, this commit retroactively applies
the guideline to existing resource files and 'media' directories. The
left-over resource files that are not referenced by any RST page are
removed.

task-2497965

closes odoo/documentation#2006

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 11:33:49 +02:00

67 lines
2.4 KiB
ReStructuredText

===================
Work with Sub-tasks
===================
Being a dynamic and organized company is important as it also helps you to not overload your
employees. For that, split large tasks into smaller ones by creating subs-tasks, timesheet
on them, and have an overview of all hours recorded.
Configuration
=============
Go to :menuselection:`Project --> Configuration --> Settings --> Sub-tasks`.
.. image:: sub_tasks/config.png
:align: center
:alt: Enable the feature under settings in Odoo Project
From now on, a *Sub-tasks* menu is available within your task.
.. image:: sub_tasks/sub_task_menu.png
:align: center
:alt: Overview of a task and the sub-tasks menu being shown in Odoo Project
Select a specific project in which sub-tasks will be created by default
-----------------------------------------------------------------------
By default, sub-tasks are created under the same project. However, you can select another one
by going to :menuselection:`Project --> Configuration --> Projects --> Sub-task Project`.
.. image:: sub_tasks/specific_project.png
:align: center
:alt: Under the settings of a project, select the sub-task project in Odoo Project
Timesheet on sub-tasks
======================
Make sure the feature *Timesheets* is enabled under :menuselection:`Project --> Configuration -->
Settings` and under the settings of the needed *Project*. Now you are able to timesheet on your
tasks and sub-tasks. The time recorded on a sub-task is counted on the parent task.
.. image:: sub_tasks/timesheet_sub_tasks.png
:align: center
:alt: Timesheets tab being shown under a task in Odoo Project
Transform an existing task into a sub-task
==========================================
| Go to :menuselection:`Settings --> Activate the developer mode`.
| Now access your task, *Edit*, and add a *Parent Task*.
.. image:: sub_tasks/task_subtask.png
:align: center
:alt: A tab extra info with a field parent task is being shown in Odoo Project
Unlink a sub-task from a parent task
====================================
| Go to :menuselection:`Settings --> Activate the developer mode`.
| Open and *Edit* the respective sub-task to remove the *Parent Task*.
.. image:: sub_tasks/unlink_sub.png
:align: center
:alt: A tab extra info with a field parent task is being shown in Odoo Project
.. seealso::
- :doc:`../record_and_invoice/time_record`