diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 068cdac0..56387082 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -25,6 +25,7 @@ "project_projected_hours", "project_remaining_hours_update", "project_stage_allow_timesheet", + "project_stage_no_quick_create", "project_task_date_planned", "project_task_deadline_from_project", "project_task_description_template", diff --git a/Dockerfile b/Dockerfile index b5f14a26..3b042a05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ COPY project_progress_variance /mnt/extra-addons/project_progress_variance COPY project_projected_hours mnt/extra-addons/project_projected_hours COPY project_remaining_hours_update /mnt/extra-addons/project_remaining_hours_update COPY project_stage_allow_timesheet mnt/extra-addons/project_stage_allow_timesheet +COPY project_stage_no_quick_create mnt/extra-addons/project_stage_no_quick_create 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_description_template /mnt/extra-addons/project_task_description_template diff --git a/project_stage_no_quick_create/README.rst b/project_stage_no_quick_create/README.rst new file mode 100644 index 00000000..2a243526 --- /dev/null +++ b/project_stage_no_quick_create/README.rst @@ -0,0 +1,57 @@ +Project Stage No Quick Create +============================= + +This module prevents the quick creation of project stages. + +*Before installing the module*: + +.. image:: static/description/quick_create_project_stage_enabled.png + +*After installing the module*: + +.. image:: static/description/quick_create_project_stage_disabled.png + +It also add the field `type_ids` (Task Stages) on the project form. + +.. image:: static/description/project_stages_form_view.png + +It also remove the view of all project linked to the project stage, only in form view. +It is always in the tree view. + +*Before installing the module*: + +.. image:: static/description/projects_linked_to_project_stage_visible.png + +*After installing the module*: + +.. image:: static/description/projects_linked_to_project_stage_invisible.png + +Same Stages for All Projects +---------------------------- +If you need to have the same stages for all project: + +* Activate the developer mode. +* Go to /Settings/Technical/Actions/User-defined Defaults. +* Click on `Create`. +* In `Field` select `Tasks Stages (project.project)`. +* In `Default Value (JSON format)` enter `[[6, 0, [n1, n2, ..., n]]]` + where [n1, n2, ..., n] is the list of ids of the stages. + +Example: + +.. image:: static/description/user_defined_defaults_tasks_stages.png + +After creating a new project with the previous configuration, the default stages will be as follows: + +.. image:: static/description/user_defined_defaults_example.png + +Whenever you want to update the default stages, you may edit this default value. + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) +* Istvan Szalai (istvan.szalai@savoirfairelinux.com) + +More information +---------------- +* Meet us at https://bit.ly/numigi-com diff --git a/project_stage_no_quick_create/__init__.py b/project_stage_no_quick_create/__init__.py new file mode 100644 index 00000000..cd68d7ad --- /dev/null +++ b/project_stage_no_quick_create/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2022-today Numigi (tm) and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL). diff --git a/project_stage_no_quick_create/__manifest__.py b/project_stage_no_quick_create/__manifest__.py new file mode 100644 index 00000000..5aa75842 --- /dev/null +++ b/project_stage_no_quick_create/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2022-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 Task Stage No Quick Create", + "version": "16.0.1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://bit.ly/numigi-com", + "licence": "LGPL-3", + "category": "Project Management", + "summary": "Disable project task stage quick create", + "depends": ["project"], + "data": [ + "views/project_project_views.xml", + "views/project_task_views.xml", + "views/project_task_type_views.xml", + ], + "installable": True, +} diff --git a/project_stage_no_quick_create/static/description/icon.png b/project_stage_no_quick_create/static/description/icon.png new file mode 100644 index 00000000..92a86b10 Binary files /dev/null and b/project_stage_no_quick_create/static/description/icon.png differ diff --git a/project_stage_no_quick_create/static/description/project_stages_form_view.png b/project_stage_no_quick_create/static/description/project_stages_form_view.png new file mode 100644 index 00000000..5de8a5c7 Binary files /dev/null and b/project_stage_no_quick_create/static/description/project_stages_form_view.png differ diff --git a/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_invisible.png b/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_invisible.png new file mode 100644 index 00000000..440c9eef Binary files /dev/null and b/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_invisible.png differ diff --git a/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_visible.png b/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_visible.png new file mode 100644 index 00000000..d8dce132 Binary files /dev/null and b/project_stage_no_quick_create/static/description/projects_linked_to_project_stage_visible.png differ diff --git a/project_stage_no_quick_create/static/description/quick_create_project_stage_disabled.png b/project_stage_no_quick_create/static/description/quick_create_project_stage_disabled.png new file mode 100644 index 00000000..dc30c4a5 Binary files /dev/null and b/project_stage_no_quick_create/static/description/quick_create_project_stage_disabled.png differ diff --git a/project_stage_no_quick_create/static/description/quick_create_project_stage_enabled.png b/project_stage_no_quick_create/static/description/quick_create_project_stage_enabled.png new file mode 100644 index 00000000..3bd5de0c Binary files /dev/null and b/project_stage_no_quick_create/static/description/quick_create_project_stage_enabled.png differ diff --git a/project_stage_no_quick_create/static/description/user_defined_defaults_example.png b/project_stage_no_quick_create/static/description/user_defined_defaults_example.png new file mode 100644 index 00000000..0aa4c6fd Binary files /dev/null and b/project_stage_no_quick_create/static/description/user_defined_defaults_example.png differ diff --git a/project_stage_no_quick_create/static/description/user_defined_defaults_tasks_stages.png b/project_stage_no_quick_create/static/description/user_defined_defaults_tasks_stages.png new file mode 100644 index 00000000..3dc7e1ec Binary files /dev/null and b/project_stage_no_quick_create/static/description/user_defined_defaults_tasks_stages.png differ diff --git a/project_stage_no_quick_create/views/project_project_views.xml b/project_stage_no_quick_create/views/project_project_views.xml new file mode 100644 index 00000000..41e02891 --- /dev/null +++ b/project_stage_no_quick_create/views/project_project_views.xml @@ -0,0 +1,15 @@ + + + + + Project Form With Stages + project.project + + + + + + + + + diff --git a/project_stage_no_quick_create/views/project_task_type_views.xml b/project_stage_no_quick_create/views/project_task_type_views.xml new file mode 100644 index 00000000..15cdc427 --- /dev/null +++ b/project_stage_no_quick_create/views/project_task_type_views.xml @@ -0,0 +1,15 @@ + + + + + project.task.type.form + project.task.type + + + + 1 + + + + + diff --git a/project_stage_no_quick_create/views/project_task_views.xml b/project_stage_no_quick_create/views/project_task_views.xml new file mode 100644 index 00000000..f6fedb5f --- /dev/null +++ b/project_stage_no_quick_create/views/project_task_views.xml @@ -0,0 +1,17 @@ + + + + + + project.task.kanban + project.task + + + + 0 + + + + + +