Skip to content

Commit

Permalink
Merge branch '16.0' into TA#72169
Browse files Browse the repository at this point in the history
  • Loading branch information
majouda authored Dec 18, 2024
2 parents 3ec8c6d + f7311aa commit 8148103
Show file tree
Hide file tree
Showing 60 changed files with 1,281 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
"category": "Other",
"summary": "Install all addons required for testing.",
"depends": [
"project",
"project_default_task_stage",
"project_milestone_enhanced",
"project_milestone_estimated_hours",
"project_milestone_spent_hours",
"project_parent_enhanced",
"project_stage_allow_timesheet",
"project_task_date_planned",
"project_task_deadline_from_project",
"project_task_editable_list_view",
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS

USER odoo

COPY project_stage_allow_timesheet mnt/extra-addons/project_stage_allow_timesheet
COPY project_default_task_stage /mnt/extra-addons/project_default_task_stage
COPY project_milestone_enhanced /mnt/extra-addons/project_milestone_enhanced
COPY project_milestone_estimated_hours /mnt/extra-addons/project_milestone_estimated_hours
COPY project_milestone_spent_hours /mnt/extra-addons/project_milestone_spent_hours
COPY project_parent_enhanced mnt/extra-addons/project_parent_enhanced
COPY project_stage_allow_timesheet mnt/extra-addons/project_stage_allow_timesheet
COPY project_task_date_planned /mnt/extra-addons/project_task_date_planned
COPY project_task_deadline_from_project /mnt/extra-addons/project_task_deadline_from_project
COPY project_task_editable_list_view /mnt/extra-addons/project_task_editable_list_view
Expand All @@ -24,6 +28,5 @@ COPY project_type_advanced /mnt/extra-addons/project_type_advanced
COPY project_default_task_stage /mnt/extra-addons/project_default_task_stage
COPY project_no_quick_create /mnt/extra-addons/project_no_quick_create


COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo
5 changes: 0 additions & 5 deletions gitoo.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
- url: https://github.com/OCA/account-reconcile
branch: "16.0"
includes:
- account_reconciliation_widget

- url: https://github.com/OCA/project
branch: "16.0"
includes:
Expand Down
96 changes: 96 additions & 0 deletions project_milestone_enhanced/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Project Milestone Enhanced
==========================

.. contents:: Table of Contents

Context
-------
Milestones can be activated for a project. First in project > settings, then it is possible to use it or not for each project.

Multiple tasks in the project can be linked to a given milestone.

When a project is copied, its milestones and tasks are copied as well.

The problem is that the copied tasks are linked to milestones
in the old project instead of the new one.

Technical
---------

Add possibility to not copy by default milestones of a project using a the key "milestones_no_copy" set to True in context.

Description
-----------
In this module :

Copied tasks are linked to the copied milestones when duplicating a project.

Add the field "active" on milestones and a button is displayed on form view

Add the field "active toggle" on milestones which store last value of field "active" using button active in milestone form view.
If value of field "active toggle" is False, when a project is disabled or field Use milestones is disabled, when they are reactivated,
milestones stay inactive

When a milestone has his project modified, all his associated tasks not associated to this new project are dissociated.

when a project change field "Milestones", milestones are set to same value if field "active toggle" is set to True.

When a project is (de)activated, milestones too if field "active toggle" is set to True.

In addition, milestone has progress field which is calculated from their tasks in closed state (stage is folded).

.. image:: static/description/project_milestone_progress.png

.. image:: static/description/milestone_progress.png

Overview
--------
I open the form of a project with milestones and tasks.

.. image:: static/description/project_form.png

I duplicate the project.

.. image:: static/description/project_form_copy.png

I notice that the milestones where copied and
that the new tasks are linked to these milestones.

.. image:: static/description/new_project.png

I open the form of a milestone, I see button "Active"

.. image:: static/description/milestone_field_active.png

I open the form of a milestone, with a project and tasks of this project associated

.. image:: static/description/milestone_project_tasks.png

I change the project of the milestone, previous displayed tasks are dissociated

.. image:: static/description/milestone_change_project.png

A project with field "Milestones" set to True, has its milestones active

.. image:: static/description/project_use_milestones.png

Milestone associated to the project is active

.. image:: static/description/milestone_use_milestones.png

I uncheck field "Milestones" on the project

.. image:: static/description/project_not_use_milestones.png

Milestone associated to the project is now inactive

.. image:: static/description/milestone_not_use_milestones.png

If I (de)activate a project, its associated milestones too

.. image:: static/description/project_deactive_milestone.png


Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)
4 changes: 4 additions & 0 deletions project_milestone_enhanced/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2023 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import models
18 changes: 18 additions & 0 deletions project_milestone_enhanced/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Project Milestone Enhanced",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"license": "LGPL-3",
"category": "Project",
"summary": "Improve usability of project milestones",
"depends": ["project"],
"data": [
"views/project_milestone.xml",
"views/project.xml",
],
"installable": True,
}
Loading

0 comments on commit 8148103

Please sign in to comment.