From 6eb58cffe0f38f8fdc385c47901039c4eb34c192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 9 Jul 2013 14:52:20 +0200 Subject: [PATCH] [DOC] project: added doc directory + changelog + stage explanation bzr revid: tde@openerp.com-20130709125220-hl7hwo2phc7t0tqr --- addons/project/doc/changelog.rst | 16 +++++++++ addons/project/doc/index.rst | 22 ++++++++++++ addons/project/doc/stage_status.rst | 54 +++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 addons/project/doc/changelog.rst create mode 100644 addons/project/doc/index.rst create mode 100644 addons/project/doc/stage_status.rst diff --git a/addons/project/doc/changelog.rst b/addons/project/doc/changelog.rst new file mode 100644 index 00000000000..ed739d1757e --- /dev/null +++ b/addons/project/doc/changelog.rst @@ -0,0 +1,16 @@ +.. _changelog: + +Changelog +========= + +`trunk (saas-2)` +---------------- + +- Stage/state update + + - ``project.task``: removed inheritance from ``base_stage`` class and removed + ``state`` field. Added ``date_last_stage_update`` field holding last stage_id + modification. Updated reports. + - ``project.task.type``: removed ``state`` field. + +- Removed ``hired.employee`` wizard. diff --git a/addons/project/doc/index.rst b/addons/project/doc/index.rst new file mode 100644 index 00000000000..118b8e7006b --- /dev/null +++ b/addons/project/doc/index.rst @@ -0,0 +1,22 @@ +===================== +Project DevDoc +===================== + +Project module documentation +=================================== + +Documentation topics +'''''''''''''''''''' + +.. toctree:: + :maxdepth: 1 + + stage_status.rst + +Changelog +''''''''' + +.. toctree:: + :maxdepth: 1 + + changelog.rst diff --git a/addons/project/doc/stage_status.rst b/addons/project/doc/stage_status.rst new file mode 100644 index 00000000000..f02b3eddbaa --- /dev/null +++ b/addons/project/doc/stage_status.rst @@ -0,0 +1,54 @@ +.. _stage_status: + +Stage and Status +================ + +.. versionchanged:: 8.0 saas-2 state/stage cleaning + +Stage ++++++ + +This revision removed the concept of state on project.task objects. The ``state`` +field has been totally removed and replaced by stages, using ``stage_id``. The +following models are impacted: + + - ``project.task`` now use only stages. However a convention still exists about + 'New' stage. A task is consdered as ``new`` when it has the following + properties: + + - ``stage_id and stage_id.sequence = 1`` + + - ``project.task.type`` do not have any ``state`` field anymore. + - ``project.task.report`` do not have any ``state`` field anymore. + +By default a newly created task is in a new stage. It means that it will +fetch the stage having ``sequence = 1``. Stage mangement is done using the +kanban view or the clikable statusbar. It is not done using buttons anymore. + +Stage analysis +++++++++++++++ + +Stage analysis can be performed using the newly introduced ``date_last_stage_update`` +datetime field. This field is updated everytime ``stage_id`` is updated. + +``project.task.report`` model also uses the ``date_last_stage_update`` field. +This allows to group and analyse the time spend in the various stages. + +Open / Assignation date ++++++++++++++++++++++++ + +The ``date_open`` field meaning has been updated. It is now set when the ``user_id`` +(responsible) is set. It is therefore the assignation date. + +Subtypes +++++++++ + +The following subtypes are triggered on ``project.task``: + + - ``mt_task_new``: new tasks. Condition: ``obj.stage_id and obj.stage_id.sequence == 1`` + - ``mt_task_stage``: stage changed. Condition: ``obj.stage_id and obj.stage_id.sequence != 1`` + - ``mt_task_assigned``: TODO + - ``mt_task_blocked``: TODO + +Those subtypes are also available on the ``project.project`` model and are used +for the auto subscription.