Author: |
Camptocamp SA, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
15.0 |
Repository: |
OCA/project |
Dependencies: |
base,
hr,
hr_holidays,
product,
project,
sale,
sale_project,
and
sale_timesheet |
Languages: |
HTML (409, 15.2%),
PO File (183, 6.8%),
Python (1453, 54.2%),
XML (452, 16.9%),
and
reStructuredText (185, 6.9%) |
Other repositories: |
Change2improve/project,
Gabinete-Digital/project,
Ingeos/project,
SeuMarco/project-service,
Tecnativa/project,
Vauxoo/project,
aurestic/project,
brain-tec/project,
camptocamp/project,
gurneyalex/project,
kmee/project,
modoolar/oca-project,
sunflowerit/project,
ursais/project,
vialaurea/OCA-project,
and
xcgd/project |
<h1 class="title">Project Forecast Lines</h1>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/project/tree/15.0/project_forecast_line"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/project-15-0/project-15-0-project_forecast_line"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/140/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows to plan your resources using forecast lines.</p>
<p>For each employee of the company, the module will generate forecast line
records with a positive capacity based on their working time schedules. Then,
tasks assigned to employees will generate forecast lines with a negative
capacity which will "consume" the work time capacity of the employees.</p>
<p>The idea is that you can then see the work capacity and scheduled work of
people by summing the "forecasts" per time period. If you have more resources
(positive forecast) than work (negative forecast) you will have a positive net
sum. Otherwise you are in trouble and need to recruit or reschedule your
work. Another way to use the report is checking when the work capacity of a
department becomes positive (or high enough) in order to provide you potential
customers with an estimate of when a project would be able to start.</p>
<p>Forecast lines also come in two states "forecast" or "confirmed", depending on
whether the consumption is confirmed or not. For instance, holidays requests
and sales quotation lines create lines of type "forecast", whereas tasks for
project which are in a running state create lines with type "confirmed".</p>
<p>To get the best experience using the Forecast application you may want to install:</p>
<ul class="simple">
<li>project_forecast_line_holidays_public module which takes public holidays into
account during forecast lines creation</li>
<li>project_forecast_line_bokeh_chart module which improves the reports of
project_forecast_line module by using the bokeh widget available in OCA/web</li>
</ul>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="usage"></a>
<h2><a class="toc-backref" href="#id1">Usage</a></h2>
<p>Forecast lines have the following data:</p>
<ul class="simple">
<li>Forecast hours: it is positive for resources (employees) and negative for
things which consume time (project tasks, for instance)</li>
<li>From and To date which are the beginning and ending of the period of the
capacity</li>
<li>Consolidated forecast: this is a computed field, which is computed as follows:<ul>
<li>for costs (project tasks for instance) we take the absolute value of the
forecast hours (so it is a positive number)</li>
<li>for resources (employee capacity for a period), we take the capacity and
substract all the costs for that employee on the same period. So it will be
positive if the employee still has some free time, and negative if he is
overloaded with work.</li>
<li>this consolidated forecast is currently converted to days to ease
readability of the forecast report</li>
</ul>
</li>
</ul>
<p>Objects creating forecast lines:</p>
<ul class="simple">
<li>employees with a forecast role will create forecast line with a positive
capacity and type "confirmed" for each day on which they work. This
information comes from their work calendar, and the different roles that are
linked to the employee.</li>
<li>draft sale orders (if enabled in the settings) will create forecast lines of
type "forecast" for each sale order line having a product with a forecast
role and start and end dates. The forecast hours are negative</li>
<li>confirmed sale orders don't create forecast lines. This is handled by the
tasks created at the confirmation of the sale order</li>
<li>project tasks create forecast lines if they have a linked role and planned start/end
dates. The type of the line will depend on the related project's stage. The
<cite>forecast_hours</cite> field is based on the remaining time of the task, which is spread
on the work days of the planned start and end date of the task. If the
current date is in the middle of the planned duration of the task, it is used
as the start date. If the planned end date is in the past the task does not
generate forecast lines (and you need to fix your planning). In case multiple
employees are assigned to the task the forecast is split equally between
them.</li>
<li>holiday requests create negative forecast lines with type "forecast" when
they are pending manager validation.</li>
<li>Validated holiday requests do not generate forecast lines, as they alter the
work calendar of the employee: the employee will not have a positive line
associated to his leave days.</li>
</ul>
<p>The creation of forecast lines is done either in real time when some actions
are performed by the user (requesting leaves, updating the remaining time on a
project task, timesheeting) and also via a cron that runs on a daily basis. The
cron is required to cleanup lines related to dates in the past and to recompute
the lines related to project tasks by computing the ratio of remaing time on
the tasks on the remaining days, for tasks which are in progress. So, to start
using consolidated forecast report you first need to set everything mentioned
in Usage section. Then, probably run Forecast recomputation cron manually from
Scheduled Actions or wait till cron creates records.</p>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/project/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/project/issues/new?body=module:%20project_forecast_line%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id3">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id4">Authors</a></h3>
<ul class="simple">
<li>Camptocamp SA</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul class="simple">
<li>Alexandre Fayolle <<a class="reference external" href="mailto:alexandre.fayolle@camptocamp.com">alexandre.fayolle@camptocamp.com</a>></li>
<li>Maksym Yankin <<a class="reference external" href="mailto:maksym.yankin@camptocamp.com">maksym.yankin@camptocamp.com</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id6">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project/tree/15.0/project_forecast_line">OCA/project</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
Dependency Graph