Skip to content

Commit

Permalink
TA#66861 [16.0][MIG] project_task_date_planned
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe committed Jun 28, 2024
1 parent 5c40121 commit 988e9c9
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"category": "Other",
"summary": "Install all addons required for testing.",
"depends": [
"project",
"project_task_date_planned",
],
"installable": True,
}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions project_task_date_planned/README.rst
Original file line number Diff line number Diff line change
@@ -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

4 changes: 4 additions & 0 deletions project_task_date_planned/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Check notice on line 4 in project_task_date_planned/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

project_task_date_planned/__init__.py#L4

'.models' imported but unused (F401)
16 changes: 16 additions & 0 deletions project_task_date_planned/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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).

{

Check warning on line 4 in project_task_date_planned/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

project_task_date_planned/__manifest__.py#L4

Statement seems to have no effect
"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,
}
33 changes: 33 additions & 0 deletions project_task_date_planned/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions project_task_date_planned/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Check notice on line 4 in project_task_date_planned/models/__init__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

project_task_date_planned/models/__init__.py#L4

'.project_task' imported but unused (F401)
11 changes: 11 additions & 0 deletions project_task_date_planned/models/project_task.py
Original file line number Diff line number Diff line change
@@ -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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions project_task_date_planned/views/project_task.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="view_task_form" model="ir.ui.view">
<field name="name">Task Form With Planned Date</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2" />
<field name="arch" type="xml">
<field name="date_deadline" position="before">
<field name="date_planned" />
</field>
</field>
</record>

<record id="view_task_list_with_planned_date" model="ir.ui.view">
<field name="name">Task List With Planned Date</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<field name="date_deadline" position="before">
<field name="date_planned" />
</field>
</field>
</record>

</odoo>

0 comments on commit 988e9c9

Please sign in to comment.