Skip to content

Commit

Permalink
TA#72157 [16.0][FIX][IMP] project_parent_enhanced : filters and itera…
Browse files Browse the repository at this point in the history
…tion name (#495)

* TA#72157 [16.0][FIX][IMP] project_parent_enhanced : filters and iteration name

---------

Co-authored-by: Majda EL MARIOULI <majdaelmariouli@gmail.com>
  • Loading branch information
lanto-razafindrabe and majouda authored Jan 17, 2025
1 parent 52103ac commit e46c2fc
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 20 deletions.
27 changes: 22 additions & 5 deletions project_parent_enhanced/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Project Parent Enhanced
=======================

This module enhances the functionality of parent-child relationships between projects and tasks in Odoo. It builds upon the features of the `project_parent` module from OCA, adding new constraints, methods, and views to better manage project hierarchies.
This module enhances the functionality of parent-child relationships between projects and tasks in Odoo.
It builds upon the features of the `project_parent` module from OCA.
Adding new constraints, methods, and views to better manage project hierarchies.

Dependencies
------------
Expand All @@ -18,16 +20,31 @@ Features
**Follower Propagation**
- Automatically propagate followers from a parent project to its child projects.

**Search by Parent Projects**
- Add a new filter view to search projects by their parent projects.
**Tasks Group by Parent Projects**
- Add a new group option to group tasks by their parent projects.

.. image:: static/description/task_filter_by_parent.png
.. image:: static/description/task_group_by_parent.png

** Search and Filter Project by Parent Projects**

- Add a new search filter to search projects by their parent projects.

.. image:: static/description/search_project_by_parent.png

- The filter by parent project is also available

.. image:: static/description/filter_project_by_parent_project.png

**View Adjustments**
- Replace project names with their `display_name` to show the hierarchy in views.

.. image:: static/description/parent_project.png
In the Kanban view:

.. image:: static/description/iteration_name_kanban_view.png

In the List view:

.. image:: static/description/iteration_name_list_view.png


Contributors
Expand Down
5 changes: 4 additions & 1 deletion project_parent_enhanced/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"website": "https://bit.ly/numigi-com",
"license": "LGPL-3",
"category": "Project",
"depends": ["project", "project_parent"],
"summary": """
Enhances the functionality of parent-child relationships
between projects and tasks.""",
"depends": ["project_parent"],
"data": [
"views/project_project_views.xml",
"views/project_task_views.xml",
Expand Down
17 changes: 8 additions & 9 deletions project_parent_enhanced/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-06 13:17+0000\n"
"PO-Revision-Date: 2024-12-06 13:17+0000\n"
"POT-Creation-Date: 2025-01-13 05:10+0000\n"
"PO-Revision-Date: 2025-01-13 05:10+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -18,13 +18,13 @@ msgstr ""
#. module: project_parent_enhanced
#: model:ir.model.fields,field_description:project_parent_enhanced.field_project_project__is_parent
msgid "Is Parent"
msgstr ""
msgstr "Est parent"

#. module: project_parent_enhanced
#: model:ir.model.fields,field_description:project_parent_enhanced.field_project_task__parent_project_id
#: model_terms:ir.ui.view,arch_db:project_parent_enhanced.view_task_search_form
msgid "Parent Project"
msgstr ""
msgstr "Projet parent"

#. module: project_parent_enhanced
#: model:ir.model,name:project_parent_enhanced.model_project_project
Expand All @@ -34,7 +34,7 @@ msgstr "Projet"
#. module: project_parent_enhanced
#: model_terms:ir.ui.view,arch_db:project_parent_enhanced.view_project
msgid "Project/Iteration Name"
msgstr ""
msgstr "Projet/Lot"

#. module: project_parent_enhanced
#: model:ir.model,name:project_parent_enhanced.model_project_task
Expand All @@ -46,16 +46,15 @@ msgstr "Tâche"
#: code:addons/project_parent_enhanced/models/project_project.py:0
#, python-format
msgid ""
"The project {project_1} can not be the child of {project_2} because "
"{project_2} is a child of {project_3}."
"The project [{project_1}] can not be the child of [{project_2}] because "
"[{project_2}] is a child of [{project_3}]."
msgstr ""
"Le projet {project_1} ne peut pas être le parent de {project_2} parce que "
"{project_2} est un enfant de {project_3}."


#. module: project_parent_enhanced
#. odoo-python
#: code:addons/project_parent_enhanced/models/project_project.py:0
#, python-format
msgid "The project {project} can not be its own parent."
msgstr "Le projet {project} ne peut pas être son propre parent."
msgstr "Le projet {project} ne peut pas être son propre parent."
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions project_parent_enhanced/views/project_project_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<record id="view_project" model="ir.ui.view">
<field name="name">Project List With Display Name instead of Name</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project"/>
<field name="inherit_id" ref="project.view_project" />
<field name="arch" type="xml">
<field name="name" position="replace">
<field name="display_name" string="Project/Iteration Name"/>
<field name="display_name" position="attributes">
<attribute name="string">Project/Iteration Name</attribute>
</field>
</field>
</record>
Expand Down
4 changes: 2 additions & 2 deletions project_parent_enhanced/views/project_task_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<record id="view_task_search_form" model="ir.ui.view">
<field name="name">Task Search With Parent Projects</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="inherit_id" ref="project.view_task_search_form" />
<field name="arch" type="xml">
<filter name="unassigned" position="after">
<filter string="Parent Project" name="group_by_parent_project_id" context="{'group_by': 'parent_project_id'}"/>
<filter string="Parent Project" name="group_by_parent_project_id" context="{'group_by': 'parent_project_id'}" />
</filter>
</field>
</record>
Expand Down

0 comments on commit e46c2fc

Please sign in to comment.