diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 60538987..a53cdff5 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -11,7 +11,7 @@ "category": "Other", "summary": "Install all addons required for testing.", "depends": [ - "project", + "project_task_date_planned", ], "installable": True, } diff --git a/Dockerfile b/Dockerfile index b91cbbf5..8bff2227 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS USER odoo +COPY project_task_date_planned /mnt/extra-addons/project_task_date_planned + COPY .docker_files/main /mnt/extra-addons/main COPY .docker_files/odoo.conf /etc/odoo diff --git a/project_task_date_planned/README.rst b/project_task_date_planned/README.rst new file mode 100644 index 00000000..18e6e2a1 --- /dev/null +++ b/project_task_date_planned/README.rst @@ -0,0 +1,15 @@ +========================= +Project Task Planned Date +========================= +This module adds a field `Planned Date` on project tasks. + +.. image:: static/description/project_task_form_view.png + +Contributors +------------ +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) + +More information +---------------- +* Meet us at https://bit.ly/numigi-com + diff --git a/project_task_date_planned/__init__.py b/project_task_date_planned/__init__.py new file mode 100644 index 00000000..63bd6ae3 --- /dev/null +++ b/project_task_date_planned/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from . import models diff --git a/project_task_date_planned/__manifest__.py b/project_task_date_planned/__manifest__.py new file mode 100644 index 00000000..b93a89aa --- /dev/null +++ b/project_task_date_planned/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + "name": "Project Task Planned Date", + "version": "1.0.1", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://bit.ly/numigi-com", + "license": "LGPL-3", + "category": "Project", + "summary": "Add a field Planned Date on the tasks.", + "depends": ["project"], + "data": ["views/project_task.xml"], + "installable": True, +} diff --git a/project_task_date_planned/i18n/fr.po b/project_task_date_planned/i18n/fr.po new file mode 100644 index 00000000..6fabfd72 --- /dev/null +++ b/project_task_date_planned/i18n/fr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_date_planned +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-06-16 11:33-0400\n" +"PO-Revision-Date: 2024-06-16 11:33-0400\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 2.0.6\n" + +#. module: project_task_date_planned +#: model:ir.model.fields,field_description:project_task_date_planned.field_project_task__date_planned +msgid "Planned Date" +msgstr "Date planifiée" + +#. module: project_task_date_planned +#: model_terms:ir.ui.view,arch_db:project_task_date_planned.view_task_search_with_planned_date +msgid "Planned Today" +msgstr "Planifiée aujourd'hui" + +#. module: project_task_date_planned +#: model:ir.model,name:project_task_date_planned.model_project_task +msgid "Task" +msgstr "Tâches" diff --git a/project_task_date_planned/models/__init__.py b/project_task_date_planned/models/__init__.py new file mode 100644 index 00000000..fb08bf9b --- /dev/null +++ b/project_task_date_planned/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from . import project_task diff --git a/project_task_date_planned/models/project_task.py b/project_task_date_planned/models/project_task.py new file mode 100644 index 00000000..7692e1ab --- /dev/null +++ b/project_task_date_planned/models/project_task.py @@ -0,0 +1,11 @@ +# Copyright 2024-today Numigi and all its contributors (https://bit.ly/numigiens) +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from odoo import fields, models + + +class ProjectTaskWithPlannedDate(models.Model): + + _inherit = "project.task" + + date_planned = fields.Date("Planned Date", index=True, copy=False, tracking=True) diff --git a/project_task_date_planned/static/description/icon.png b/project_task_date_planned/static/description/icon.png new file mode 100644 index 00000000..92a86b10 Binary files /dev/null and b/project_task_date_planned/static/description/icon.png differ diff --git a/project_task_date_planned/static/description/project_task_form_view.png b/project_task_date_planned/static/description/project_task_form_view.png new file mode 100644 index 00000000..dd7c6216 Binary files /dev/null and b/project_task_date_planned/static/description/project_task_form_view.png differ diff --git a/project_task_date_planned/views/project_task.xml b/project_task_date_planned/views/project_task.xml new file mode 100644 index 00000000..a6bc6475 --- /dev/null +++ b/project_task_date_planned/views/project_task.xml @@ -0,0 +1,26 @@ + + + + + Task Form With Planned Date + project.task + + + + + + + + + + Task List With Planned Date + project.task + + + + + + + + +