diff --git a/project_task_reviewer/README.rst b/project_task_reviewer/README.rst new file mode 100644 index 00000000..dd529622 --- /dev/null +++ b/project_task_reviewer/README.rst @@ -0,0 +1,28 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +===================== +Project task reviewer +===================== + +* In project task new field "Reviewer". + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, +please check there if your issue has already been reported. If you spotted +it first, help us smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Contributors +------------ + +* Ana Juaristi +* Alfredo de la Fuente diff --git a/project_task_reviewer/__init__.py b/project_task_reviewer/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/project_task_reviewer/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/project_task_reviewer/__manifest__.py b/project_task_reviewer/__manifest__.py new file mode 100644 index 00000000..a6fef800 --- /dev/null +++ b/project_task_reviewer/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Project Task Reviewer", + "version": "16.0.1.0.0", + "category": "Services/Project", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "https://github.com/avanzosc/project-addons", + "contributors": [ + "Ana Juaristi ", + "Alfredo de la Fuente ", + ], + "depends": [ + "project", + ], + "data": [ + "views/project_task_view.xml", + ], + "installable": True, +} diff --git a/project_task_reviewer/i18n/ca_ES.po b/project_task_reviewer/i18n/ca_ES.po new file mode 100644 index 00000000..10cd0476 --- /dev/null +++ b/project_task_reviewer/i18n/ca_ES.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_reviewer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-28 10:58+0000\n" +"PO-Revision-Date: 2024-11-28 10:58+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: project_task_reviewer +#: model:ir.model.fields,field_description:project_task_reviewer.field_project_task__reviewer_id +#: model_terms:ir.ui.view,arch_db:project_task_reviewer.view_task_search_form +msgid "Reviewer" +msgstr "" + +#. module: project_task_reviewer +#: model:ir.model,name:project_task_reviewer.model_project_task +msgid "Task" +msgstr "Tasca" diff --git a/project_task_reviewer/i18n/en_GB.po b/project_task_reviewer/i18n/en_GB.po new file mode 100644 index 00000000..bca5c11d --- /dev/null +++ b/project_task_reviewer/i18n/en_GB.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_reviewer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-28 10:58+0000\n" +"PO-Revision-Date: 2024-11-28 10:58+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: project_task_reviewer +#: model:ir.model.fields,field_description:project_task_reviewer.field_project_task__reviewer_id +#: model_terms:ir.ui.view,arch_db:project_task_reviewer.view_task_search_form +msgid "Reviewer" +msgstr "" + +#. module: project_task_reviewer +#: model:ir.model,name:project_task_reviewer.model_project_task +msgid "Task" +msgstr "" diff --git a/project_task_reviewer/i18n/es.po b/project_task_reviewer/i18n/es.po new file mode 100644 index 00000000..9080c5fe --- /dev/null +++ b/project_task_reviewer/i18n/es.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_reviewer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-28 10:59+0000\n" +"PO-Revision-Date: 2024-11-28 10:59+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: project_task_reviewer +#: model:ir.model.fields,field_description:project_task_reviewer.field_project_task__reviewer_id +#: model_terms:ir.ui.view,arch_db:project_task_reviewer.view_task_search_form +msgid "Reviewer" +msgstr "Revisor" + +#. module: project_task_reviewer +#: model:ir.model,name:project_task_reviewer.model_project_task +msgid "Task" +msgstr "Tarea" diff --git a/project_task_reviewer/i18n/fr.po b/project_task_reviewer/i18n/fr.po new file mode 100644 index 00000000..d6c7cadf --- /dev/null +++ b/project_task_reviewer/i18n/fr.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_reviewer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-28 10:59+0000\n" +"PO-Revision-Date: 2024-11-28 10:59+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: project_task_reviewer +#: model:ir.model.fields,field_description:project_task_reviewer.field_project_task__reviewer_id +#: model_terms:ir.ui.view,arch_db:project_task_reviewer.view_task_search_form +msgid "Reviewer" +msgstr "" + +#. module: project_task_reviewer +#: model:ir.model,name:project_task_reviewer.model_project_task +msgid "Task" +msgstr "Tâche" diff --git a/project_task_reviewer/i18n/project_task_reviewer.pot b/project_task_reviewer/i18n/project_task_reviewer.pot new file mode 100644 index 00000000..bca5c11d --- /dev/null +++ b/project_task_reviewer/i18n/project_task_reviewer.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_reviewer +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-11-28 10:58+0000\n" +"PO-Revision-Date: 2024-11-28 10:58+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: project_task_reviewer +#: model:ir.model.fields,field_description:project_task_reviewer.field_project_task__reviewer_id +#: model_terms:ir.ui.view,arch_db:project_task_reviewer.view_task_search_form +msgid "Reviewer" +msgstr "" + +#. module: project_task_reviewer +#: model:ir.model,name:project_task_reviewer.model_project_task +msgid "Task" +msgstr "" diff --git a/project_task_reviewer/models/__init__.py b/project_task_reviewer/models/__init__.py new file mode 100644 index 00000000..edf2d36b --- /dev/null +++ b/project_task_reviewer/models/__init__.py @@ -0,0 +1 @@ +from . import project_task diff --git a/project_task_reviewer/models/project_task.py b/project_task_reviewer/models/project_task.py new file mode 100644 index 00000000..2ac21442 --- /dev/null +++ b/project_task_reviewer/models/project_task.py @@ -0,0 +1,9 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class ProjectTask(models.Model): + _inherit = "project.task" + + reviewer_id = fields.Many2one(string="Reviewer", comodel_name="res.users") diff --git a/project_task_reviewer/views/project_task_view.xml b/project_task_reviewer/views/project_task_view.xml new file mode 100644 index 00000000..a7639913 --- /dev/null +++ b/project_task_reviewer/views/project_task_view.xml @@ -0,0 +1,39 @@ + + + + project.task + + + + + + + + + + + + + project.task + + + + + + + + + + project.task + + + + + + + + diff --git a/setup/project_task_reviewer/odoo/addons/project_task_reviewer b/setup/project_task_reviewer/odoo/addons/project_task_reviewer new file mode 120000 index 00000000..21256ce3 --- /dev/null +++ b/setup/project_task_reviewer/odoo/addons/project_task_reviewer @@ -0,0 +1 @@ +../../../../project_task_reviewer \ No newline at end of file diff --git a/setup/project_task_reviewer/setup.py b/setup/project_task_reviewer/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/project_task_reviewer/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)