diff --git a/project_task_code/README.rst b/project_task_code/README.rst new file mode 100644 index 0000000000..731ea45808 --- /dev/null +++ b/project_task_code/README.rst @@ -0,0 +1,109 @@ +========================= +Sequential Code for Tasks +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4597f906c0886b0b3a0022fdf54312744fe8011ed05bdbf2a0910de934cb8489 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github + :target: https://github.com/OCA/project/tree/18.0/project_task_code + :alt: OCA/project +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/project-18-0/project-18-0-project_task_code + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/project&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a sequential code for tasks. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To change the task code sequence, you must: + +1. Activate the developer mode. +2. Go to Settings > Technical > Sequences & Identifiers > Sequences. +3. Click on "Task code" sequence to edit. + +Usage +===== + +To use this module, you need to: + +#. Go to menu Project > Search > Tasks and create a new task, and you +get a new code saving it. #. If you duplicate a task, you will get a new +code for the new task. + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* OdooMRP team +* AvanzOSC +* Tecnativa + +Contributors +------------ + +- Oihane Crucelaegui +- Pedro M. Baeza +- Ana Juaristi +- Vicent Cubells +- Rodrigo Ferreira +- Damien Bouvy +- `CorporateHub `__ + + - Alexey Pelykh + +- Saran Lim. +- Tharathip Chaweewongphan +- Ruchir Shukla +- Nedas Žilinskas + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/project `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_task_code/__init__.py b/project_task_code/__init__.py new file mode 100644 index 0000000000..d74e4375aa --- /dev/null +++ b/project_task_code/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models +from .hooks import pre_init_hook +from .hooks import post_init_hook diff --git a/project_task_code/__manifest__.py b/project_task_code/__manifest__.py new file mode 100644 index 0000000000..3b6c7376c7 --- /dev/null +++ b/project_task_code/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright 2016 Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Sequential Code for Tasks", + "version": "18.0.1.0.0", + "category": "Project Management", + "author": "OdooMRP team, " + "AvanzOSC, " + "Tecnativa, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/project", + "license": "AGPL-3", + "depends": [ + "project", + ], + "data": [ + "data/task_sequence.xml", + "views/project_view.xml", + ], + "installable": True, + "pre_init_hook": "pre_init_hook", + "post_init_hook": "post_init_hook", +} diff --git a/project_task_code/data/task_sequence.xml b/project_task_code/data/task_sequence.xml new file mode 100644 index 0000000000..68507e04b9 --- /dev/null +++ b/project_task_code/data/task_sequence.xml @@ -0,0 +1,13 @@ + + + + + Task code + project.task + + T + + + diff --git a/project_task_code/hooks.py b/project_task_code/hooks.py new file mode 100644 index 0000000000..e296beccea --- /dev/null +++ b/project_task_code/hooks.py @@ -0,0 +1,30 @@ +# Copyright 2016 Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +def pre_init_hook(env): + """ + With this pre-init-hook we want to avoid error when creating the UNIQUE + code constraint when the module is installed and before the post-init-hook + is launched. + """ + env.cr.execute("ALTER TABLE project_task ADD COLUMN code character varying;") + env.cr.execute("UPDATE project_task SET code = id;") + + +def post_init_hook(env): + """ + This post-init-hook will update all existing task assigning them the + corresponding sequence code. + """ + task_obj = env["project.task"] + sequence_obj = env["ir.sequence"] + tasks = task_obj.search([], order="id") + for task_id in tasks.ids: + env.cr.execute( + "UPDATE project_task SET code = %s WHERE id = %s;", + ( + sequence_obj.next_by_code("project.task"), + task_id, + ), + ) diff --git a/project_task_code/i18n/ar.po b/project_task_code/i18n/ar.po new file mode 100644 index 0000000000..5065aa8d9e --- /dev/null +++ b/project_task_code/i18n/ar.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Arabic (http://www.transifex.com/oca/OCA-project-8-0/language/" +"ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "مهمة" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/bg.po b/project_task_code/i18n/bg.po new file mode 100644 index 0000000000..7d189b7d66 --- /dev/null +++ b/project_task_code/i18n/bg.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Номерът трябва да е уникален!" diff --git a/project_task_code/i18n/ca.po b/project_task_code/i18n/ca.po new file mode 100644 index 0000000000..3bdc3c8672 --- /dev/null +++ b/project_task_code/i18n/ca.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2022-04-13 11:05+0000\n" +"Last-Translator: Noel estudillo \n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-project-8-0/" +"language/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tasca" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número de tasca" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "El codi ha de ser únic!" diff --git a/project_task_code/i18n/de.po b/project_task_code/i18n/de.po new file mode 100644 index 0000000000..17c75a5988 --- /dev/null +++ b/project_task_code/i18n/de.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Aufgabe" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Aufgaben Nummer" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Der Schlüssel muss eindeutig sein!" diff --git a/project_task_code/i18n/el.po b/project_task_code/i18n/el.po new file mode 100644 index 0000000000..c49c3078df --- /dev/null +++ b/project_task_code/i18n/el.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Greek (http://www.transifex.com/oca/OCA-project-8-0/language/" +"el/)\n" +"Language: el\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Εργασία" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/es.po b/project_task_code/i18n/es.po new file mode 100644 index 0000000000..725eb5f05e --- /dev/null +++ b/project_task_code/i18n/es.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2024-01-15 19:36+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr " - " + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarea" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número de tarea" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "¡El número debe de ser único!" diff --git a/project_task_code/i18n/es_AR.po b/project_task_code/i18n/es_AR.po new file mode 100644 index 0000000000..b30bf69f88 --- /dev/null +++ b/project_task_code/i18n/es_AR.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-01-17 02:52+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: none\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr " - " + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarea" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número de Tarea" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "¡El código debe ser único!" + +#~ msgid "Display Name" +#~ msgstr "Mostrar Nombre" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificación el" diff --git a/project_task_code/i18n/es_CR.po b/project_task_code/i18n/es_CR.po new file mode 100644 index 0000000000..74f9ad0ec9 --- /dev/null +++ b/project_task_code/i18n/es_CR.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Costa Rica) (http://www.transifex.com/oca/OCA-" +"project-8-0/language/es_CR/)\n" +"Language: es_CR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarea" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/es_MX.po b/project_task_code/i18n/es_MX.po new file mode 100644 index 0000000000..9b7c45d888 --- /dev/null +++ b/project_task_code/i18n/es_MX.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2021-09-29 23:34+0000\n" +"Last-Translator: Jesús Alan Ramos Rodríguez \n" +"Language-Team: Spanish (Mexico) (http://www.transifex.com/oca/OCA-" +"project-8-0/language/es_MX/)\n" +"Language: es_MX\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarea" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número de Tareas" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "¡El código debe ser único!" diff --git a/project_task_code/i18n/es_VE.po b/project_task_code/i18n/es_VE.po new file mode 100644 index 0000000000..1f122fa9c2 --- /dev/null +++ b/project_task_code/i18n/es_VE.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Venezuela) (http://www.transifex.com/oca/OCA-" +"project-8-0/language/es_VE/)\n" +"Language: es_VE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarea" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/fi.po b/project_task_code/i18n/fi.po new file mode 100644 index 0000000000..dfd5c6cc90 --- /dev/null +++ b/project_task_code/i18n/fi.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2017 +# Miku Laitinen , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-13 03:39+0000\n" +"PO-Revision-Date: 2017-01-13 03:39+0000\n" +"Last-Translator: Miku Laitinen , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tehtävä" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Tehtävän numero" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Koodin on oltava uniikki!" diff --git a/project_task_code/i18n/fr.po b/project_task_code/i18n/fr.po new file mode 100644 index 0000000000..10d381b26a --- /dev/null +++ b/project_task_code/i18n/fr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tâche" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Numéro de la tâche" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Le code doit être unique!" diff --git a/project_task_code/i18n/fr_FR.po b/project_task_code/i18n/fr_FR.po new file mode 100644 index 0000000000..685d21bb21 --- /dev/null +++ b/project_task_code/i18n/fr_FR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-04-11 16:46+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tâche" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Numéro de la tâche" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Le code doit être unique!" diff --git a/project_task_code/i18n/gl.po b/project_task_code/i18n/gl.po new file mode 100644 index 0000000000..acce5a1740 --- /dev/null +++ b/project_task_code/i18n/gl.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2019-02-11 12:50+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: Galician (http://www.transifex.com/oca/OCA-project-8-0/" +"language/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.4\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarefa" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número de tarea" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "O número debe de ser único!" diff --git a/project_task_code/i18n/hr.po b/project_task_code/i18n/hr.po new file mode 100644 index 0000000000..d54488a59c --- /dev/null +++ b/project_task_code/i18n/hr.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2017 +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-28 08:33+0000\n" +"PO-Revision-Date: 2017-04-28 08:33+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Zadatak" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Broj zadatka" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Šifra mora biti jedinstvena!" diff --git a/project_task_code/i18n/hr_HR.po b/project_task_code/i18n/hr_HR.po new file mode 100644 index 0000000000..e73f91b641 --- /dev/null +++ b/project_task_code/i18n/hr_HR.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: Bole , 2016\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Zadatak" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/hu.po b/project_task_code/i18n/hu.po new file mode 100644 index 0000000000..8ce2955c5d --- /dev/null +++ b/project_task_code/i18n/hu.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Hungarian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/hu/)\n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Feladat" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/it.po b/project_task_code/i18n/it.po new file mode 100644 index 0000000000..2866a74b4c --- /dev/null +++ b/project_task_code/i18n/it.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +# Paolo Valier , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2024-01-20 17:36+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr " - " + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Lavoro" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Numero lavoro" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Il codice deve essere univoco!" diff --git a/project_task_code/i18n/ja.po b/project_task_code/i18n/ja.po new file mode 100644 index 0000000000..f5a06cffc8 --- /dev/null +++ b/project_task_code/i18n/ja.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Japanese (http://www.transifex.com/oca/OCA-project-8-0/" +"language/ja/)\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "タスク" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/lt.po b/project_task_code/i18n/lt.po new file mode 100644 index 0000000000..8e59d111fb --- /dev/null +++ b/project_task_code/i18n/lt.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Lithuanian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Užduotis" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/lv.po b/project_task_code/i18n/lv.po new file mode 100644 index 0000000000..0ba6f83085 --- /dev/null +++ b/project_task_code/i18n/lv.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Latvian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/lv/)\n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Uzdevums" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/mk.po b/project_task_code/i18n/mk.po new file mode 100644 index 0000000000..874fb85ab8 --- /dev/null +++ b/project_task_code/i18n/mk.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Macedonian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/mk/)\n" +"Language: mk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Задача" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/mn.po b/project_task_code/i18n/mn.po new file mode 100644 index 0000000000..0a1ca87974 --- /dev/null +++ b/project_task_code/i18n/mn.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Mongolian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/mn/)\n" +"Language: mn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Даалгавар" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/nl.po b/project_task_code/i18n/nl.po new file mode 100644 index 0000000000..7cc945ebcf --- /dev/null +++ b/project_task_code/i18n/nl.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2017 +# Erwin van der Ploeg , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-14 05:34+0000\n" +"PO-Revision-Date: 2017-01-14 05:34+0000\n" +"Last-Translator: Erwin van der Ploeg , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Taak" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Taaknummer" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "De taaknummer moet uniek zijn!" diff --git a/project_task_code/i18n/nl_NL.po b/project_task_code/i18n/nl_NL.po new file mode 100644 index 0000000000..836946782e --- /dev/null +++ b/project_task_code/i18n/nl_NL.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-17 02:52+0000\n" +"PO-Revision-Date: 2017-06-17 02:52+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Taak" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Taaknummer" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "De code moet uniek zijn!" diff --git a/project_task_code/i18n/pl.po b/project_task_code/i18n/pl.po new file mode 100644 index 0000000000..aa839bc471 --- /dev/null +++ b/project_task_code/i18n/pl.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Polish (http://www.transifex.com/oca/OCA-project-8-0/language/" +"pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Zadanie" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/project_task_code.pot b/project_task_code/i18n/project_task_code.pot new file mode 100644 index 0000000000..4726c88829 --- /dev/null +++ b/project_task_code/i18n/project_task_code.pot @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \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_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/pt.po b/project_task_code/i18n/pt.po new file mode 100644 index 0000000000..deaa3d7d12 --- /dev/null +++ b/project_task_code/i18n/pt.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarefa" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número Tarefa" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "O código tem que ser único!" diff --git a/project_task_code/i18n/pt_BR.po b/project_task_code/i18n/pt_BR.po new file mode 100644 index 0000000000..0072310ea6 --- /dev/null +++ b/project_task_code/i18n/pt_BR.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2024-05-22 02:55+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr " - " + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarefa" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Número da Tarefa" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "O código precisa ser único!" diff --git a/project_task_code/i18n/pt_PT.po b/project_task_code/i18n/pt_PT.po new file mode 100644 index 0000000000..98810a3e23 --- /dev/null +++ b/project_task_code/i18n/pt_PT.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-08 09:57+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-" +"project-8-0/language/pt_PT/)\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Tarefa" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/ro.po b/project_task_code/i18n/ro.po new file mode 100644 index 0000000000..c24761a1e4 --- /dev/null +++ b/project_task_code/i18n/ro.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/OCA-project-8-0/" +"language/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Sarcina" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/sk.po b/project_task_code/i18n/sk.po new file mode 100644 index 0000000000..3e6073c10a --- /dev/null +++ b/project_task_code/i18n/sk.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# gebri , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: gebri , 2016\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Kód musí byť jedinečný!" diff --git a/project_task_code/i18n/sl.po b/project_task_code/i18n/sl.po new file mode 100644 index 0000000000..5ad3dbab59 --- /dev/null +++ b/project_task_code/i18n/sl.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-23 03:43+0000\n" +"PO-Revision-Date: 2016-12-23 03:43+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Opravilo" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Številka opravila" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Koda mora biti unikatna!" diff --git a/project_task_code/i18n/sv.po b/project_task_code/i18n/sv.po new file mode 100644 index 0000000000..d4232c84b4 --- /dev/null +++ b/project_task_code/i18n/sv.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2021-11-16 10:36+0000\n" +"Last-Translator: Simon S \n" +"Language-Team: Swedish (http://www.transifex.com/oca/OCA-project-8-0/" +"language/sv/)\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Aktivitet" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Aktivitetsnummer" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Koden måste vara unik!" diff --git a/project_task_code/i18n/tr.po b/project_task_code/i18n/tr.po new file mode 100644 index 0000000000..29eb329ac6 --- /dev/null +++ b/project_task_code/i18n/tr.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2017 +# Ivan BARAYEV , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-13 03:39+0000\n" +"PO-Revision-Date: 2017-01-13 03:39+0000\n" +"Last-Translator: Ivan BARAYEV , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Görev" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "Görev Numarası" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "Kod benzersiz olmalı !" diff --git a/project_task_code/i18n/uk.po b/project_task_code/i18n/uk.po new file mode 100644 index 0000000000..566168e5da --- /dev/null +++ b/project_task_code/i18n/uk.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-23 02:44+0000\n" +"PO-Revision-Date: 2017-05-23 02:44+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Ukrainian (https://www.transifex.com/oca/teams/23907/uk/)\n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "Завдання" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/i18n/zh_CN.po b/project_task_code/i18n/zh_CN.po new file mode 100644 index 0000000000..b4df1cd77c --- /dev/null +++ b/project_task_code/i18n/zh_CN.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_task_code +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: project (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-31 18:04+0000\n" +"PO-Revision-Date: 2015-08-06 21:48+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-project-8-0/" +"language/zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: project_task_code +#: model_terms:ir.ui.view,arch_db:project_task_code.project_task_code_form_view +msgid " - " +msgstr "" + +#. module: project_task_code +#: model:ir.model,name:project_task_code.model_project_task +msgid "Task" +msgstr "任务" + +#. module: project_task_code +#: model:ir.model.fields,field_description:project_task_code.field_project_task__code +msgid "Task Number" +msgstr "" + +#. module: project_task_code +#. odoo-python +#: code:addons/project_task_code/models/project_task.py:0 +#: model:ir.model.constraint,message:project_task_code.constraint_project_task_project_task_unique_code +#, python-format +msgid "The code must be unique!" +msgstr "" diff --git a/project_task_code/models/__init__.py b/project_task_code/models/__init__.py new file mode 100644 index 0000000000..4e791c80b1 --- /dev/null +++ b/project_task_code/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import project_task diff --git a/project_task_code/models/project_task.py b/project_task_code/models/project_task.py new file mode 100644 index 0000000000..04e6c538e1 --- /dev/null +++ b/project_task_code/models/project_task.py @@ -0,0 +1,48 @@ +# Copyright 2016 Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + +PROJECT_TASK_WRITABLE_FIELDS = { + "code", +} + + +class ProjectTask(models.Model): + _inherit = "project.task" + _rec_names_search = ["name", "code"] + + code = fields.Char( + string="Task Number", + required=True, + default="/", + readonly=True, + copy=False, + ) + + _sql_constraints = [ + ( + "project_task_unique_code", + "UNIQUE (company_id, code)", + "The code must be unique!", + ), + ] + + @property + def SELF_WRITABLE_FIELDS(self): + return super().SELF_WRITABLE_FIELDS | PROJECT_TASK_WRITABLE_FIELDS + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + if vals.get("code", "/") == "/": + vals["code"] = ( + # `sudo()` for portal users + self.env["ir.sequence"].sudo().next_by_code("project.task") or "/" + ) + return super().create(vals_list) + + @api.depends("name", "code") + def _compute_display_name(self): + for task in self: + task.display_name = f"[{task.code}] {task.name}" if task.code else task.name diff --git a/project_task_code/pyproject.toml b/project_task_code/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/project_task_code/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/project_task_code/readme/CONFIGURE.md b/project_task_code/readme/CONFIGURE.md new file mode 100644 index 0000000000..23457fa8cc --- /dev/null +++ b/project_task_code/readme/CONFIGURE.md @@ -0,0 +1,5 @@ +To change the task code sequence, you must: + +1. Activate the developer mode. +2. Go to Settings \> Technical \> Sequences & Identifiers \> Sequences. +3. Click on "Task code" sequence to edit. diff --git a/project_task_code/readme/CONTRIBUTORS.md b/project_task_code/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..534c340b75 --- /dev/null +++ b/project_task_code/readme/CONTRIBUTORS.md @@ -0,0 +1,12 @@ +- Oihane Crucelaegui \<\> +- Pedro M. Baeza \<\> +- Ana Juaristi \<\> +- Vicent Cubells \<\> +- Rodrigo Ferreira \<\> +- Damien Bouvy \<\> +- [CorporateHub](https://corporatehub.eu/) + - Alexey Pelykh \<\> +- Saran Lim. \<\> +- Tharathip Chaweewongphan \<\> +- Ruchir Shukla \<\> +- Nedas Žilinskas \<\> diff --git a/project_task_code/readme/DESCRIPTION.md b/project_task_code/readme/DESCRIPTION.md new file mode 100644 index 0000000000..90fb9962ae --- /dev/null +++ b/project_task_code/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds a sequential code for tasks. diff --git a/project_task_code/readme/USAGE.md b/project_task_code/readme/USAGE.md new file mode 100644 index 0000000000..bd6f7c8920 --- /dev/null +++ b/project_task_code/readme/USAGE.md @@ -0,0 +1,5 @@ +To use this module, you need to: + +#\. Go to menu Project \> Search \> Tasks and create a new task, and you +get a new code saving it. \#. If you duplicate a task, you will get a +new code for the new task. diff --git a/project_task_code/static/description/icon.png b/project_task_code/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/project_task_code/static/description/icon.png differ diff --git a/project_task_code/static/description/index.html b/project_task_code/static/description/index.html new file mode 100644 index 0000000000..fbc359f14a --- /dev/null +++ b/project_task_code/static/description/index.html @@ -0,0 +1,456 @@ + + + + + +Sequential Code for Tasks + + + +
+

Sequential Code for Tasks

+ + +

Beta License: AGPL-3 OCA/project Translate me on Weblate Try me on Runboat

+

This module adds a sequential code for tasks.

+

Table of contents

+ +
+

Configuration

+

To change the task code sequence, you must:

+
    +
  1. Activate the developer mode.
  2. +
  3. Go to Settings > Technical > Sequences & Identifiers > Sequences.
  4. +
  5. Click on “Task code” sequence to edit.
  6. +
+
+
+

Usage

+

To use this module, you need to:

+

#. Go to menu Project > Search > Tasks and create a new task, and you +get a new code saving it. #. If you duplicate a task, you will get a new +code for the new task.

+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • OdooMRP team
  • +
  • AvanzOSC
  • +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/project project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/project_task_code/tests/__init__.py b/project_task_code/tests/__init__.py new file mode 100644 index 0000000000..71a546eaf7 --- /dev/null +++ b/project_task_code/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_project_task_code diff --git a/project_task_code/tests/test_project_task_code.py b/project_task_code/tests/test_project_task_code.py new file mode 100644 index 0000000000..2fddcc4e5f --- /dev/null +++ b/project_task_code/tests/test_project_task_code.py @@ -0,0 +1,73 @@ +# Copyright 2016 Tecnativa +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import odoo.tests.common as common + + +class TestProjectTaskCode(common.TransactionCase): + def setUp(self): + super().setUp() + self.project_task_model = self.env["project.task"] + self.ir_sequence_model = self.env["ir.sequence"] + self.task_sequence = self.env.ref("project_task_code.sequence_task") + self.project_task = self.env.ref("project.project_1_task_1") + + def test_old_task_code_assign(self): + project_tasks = self.project_task_model.search([]) + for project_task in project_tasks: + self.assertNotEqual(project_task.code, "/") + + def test_new_task_code_assign(self): + number_next = self.task_sequence.number_next_actual + code = self.task_sequence.get_next_char(number_next) + project_task = self.project_task_model.create( + { + "name": "Testing task code", + } + ) + self.assertNotEqual(project_task.code, "/") + self.assertEqual(project_task.code, code) + + def test_name_get(self): + number_next = self.task_sequence.number_next_actual + code = self.task_sequence.get_next_char(number_next) + project_task = self.project_task_model.create( + { + "name": "Task Testing Get Name", + } + ) + result = project_task.display_name + self.assertEqual(result, f"[{code}] Task Testing Get Name") + + def test_name_search(self): + project_task = self.env["project.task"].create( + {"name": "Such Much Task", "code": "TEST-123"} + ) + + result = project_task.name_search("TEST-123") + self.assertIn( + project_task.id, + map(lambda x: x[0], result), + f"Task with code {project_task.code} should be in the results", + ) + + result = project_task.name_search("TEST") + self.assertIn( + project_task.id, + map(lambda x: x[0], result), + f"Task with code {project_task.code} should be in the results", + ) + + result = project_task.name_search("much") + self.assertIn( + project_task.id, + map(lambda x: x[0], result), + f"Task with code {project_task.code} should be in the results", + ) + + result = project_task.name_search("20232") + self.assertNotIn( + project_task.id, + map(lambda x: x[0], result), + f"Task with code {project_task.code} should not be in the results", + ) diff --git a/project_task_code/views/project_view.xml b/project_task_code/views/project_view.xml new file mode 100644 index 0000000000..2296414678 --- /dev/null +++ b/project_task_code/views/project_view.xml @@ -0,0 +1,46 @@ + + + + project.task.code.form + project.task + + + + + - + + + + + project.task.code.tree + project.task + + + + + + + + + project.task.code.kanban + project.task + + + + + + + + + project.task.code.search + project.task + + + + ['|', ('name', 'ilike', self), + ('code', 'ilike', self)] + + + + +