diff --git a/project_task_stage_lock/README.rst b/project_task_stage_lock/README.rst new file mode 100644 index 0000000000..52a279a70b --- /dev/null +++ b/project_task_stage_lock/README.rst @@ -0,0 +1,95 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +======================= +Project Task Stage Lock +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:c2a2fd72a87a174609e2274cea72de2dd318896b24dfc774620fc2c0458c0e79 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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/19.0/project_task_stage_lock + :alt: OCA/project +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/project-19-0/project-19-0-project_task_stage_lock + :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=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Locks the Stages in the Kanban view of the project task to avoid +modification of the stages in other projects. + +Also removes the default group by in the stages list view to be able to +see the stages order. + +This module is useful when you share stages among your projects and you +want to control order of stages in global. + +**Table of contents** + +.. contents:: + :local: + +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 +------- + +* ForgeFlow + +Contributors +------------ + +- David Jimenez + +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. + +.. |maintainer-DavidJForgeFlow| image:: https://github.com/DavidJForgeFlow.png?size=40px + :target: https://github.com/DavidJForgeFlow + :alt: DavidJForgeFlow + +Current `maintainer `__: + +|maintainer-DavidJForgeFlow| + +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_stage_lock/__init__.py b/project_task_stage_lock/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/project_task_stage_lock/__manifest__.py b/project_task_stage_lock/__manifest__.py new file mode 100644 index 0000000000..400824b984 --- /dev/null +++ b/project_task_stage_lock/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright 2026 ForgeFlow S.L. +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +{ + "name": "Project Task Stage Lock", + "version": "19.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "summary": """ + Locks the Stages in the Kanban view of the project task + to avoid modification of the stages in other projects. + + Also removes the default group by in the stages list view + to be able to see the stages order. + """, + "website": "https://github.com/OCA/project", + "category": "Project", + "depends": ["project"], + "data": [ + "views/project.xml", + ], + "assets": { + "web.assets_backend": [ + "project_task_stage_lock/static/src/views/project_task_kanban_renderer.esm.js", + ], + }, + "license": "AGPL-3", + "installable": True, + "maintainers": ["DavidJForgeFlow"], +} diff --git a/project_task_stage_lock/i18n/it.po b/project_task_stage_lock/i18n/it.po new file mode 100644 index 0000000000..c0d5085374 --- /dev/null +++ b/project_task_stage_lock/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\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" diff --git a/project_task_stage_lock/i18n/nl.po b/project_task_stage_lock/i18n/nl.po new file mode 100644 index 0000000000..f834a1b83c --- /dev/null +++ b/project_task_stage_lock/i18n/nl.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\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" diff --git a/project_task_stage_lock/i18n/project_task_stage_lock.pot b/project_task_stage_lock/i18n/project_task_stage_lock.pot new file mode 100644 index 0000000000..6603b4a88c --- /dev/null +++ b/project_task_stage_lock/i18n/project_task_stage_lock.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 19.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" diff --git a/project_task_stage_lock/pyproject.toml b/project_task_stage_lock/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/project_task_stage_lock/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/project_task_stage_lock/readme/CONTRIBUTORS.md b/project_task_stage_lock/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..1d5ed3feb5 --- /dev/null +++ b/project_task_stage_lock/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- David Jimenez \<\> diff --git a/project_task_stage_lock/readme/DESCRIPTION.md b/project_task_stage_lock/readme/DESCRIPTION.md new file mode 100644 index 0000000000..46967c4365 --- /dev/null +++ b/project_task_stage_lock/readme/DESCRIPTION.md @@ -0,0 +1,8 @@ +Locks the Stages in the Kanban view of the project task +to avoid modification of the stages in other projects. + +Also removes the default group by in the stages list view +to be able to see the stages order. + +This module is useful when you share stages among your +projects and you want to control order of stages in global. diff --git a/project_task_stage_lock/static/description/icon.png b/project_task_stage_lock/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/project_task_stage_lock/static/description/icon.png differ diff --git a/project_task_stage_lock/static/description/index.html b/project_task_stage_lock/static/description/index.html new file mode 100644 index 0000000000..e8a60a8943 --- /dev/null +++ b/project_task_stage_lock/static/description/index.html @@ -0,0 +1,436 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Project Task Stage Lock

+ +

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

+

Locks the Stages in the Kanban view of the project task to avoid +modification of the stages in other projects.

+

Also removes the default group by in the stages list view to be able to +see the stages order.

+

This module is useful when you share stages among your projects and you +want to control order of stages in global.

+

Table of contents

+ +
+

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

+
    +
  • ForgeFlow
  • +
+
+
+

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.

+

Current maintainer:

+

DavidJForgeFlow

+

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_stage_lock/static/src/views/project_task_kanban_renderer.esm.js b/project_task_stage_lock/static/src/views/project_task_kanban_renderer.esm.js new file mode 100644 index 0000000000..51c5a8d6dd --- /dev/null +++ b/project_task_stage_lock/static/src/views/project_task_kanban_renderer.esm.js @@ -0,0 +1,8 @@ +import {ProjectTaskKanbanRenderer} from "@project/views/project_task_kanban/project_task_kanban_renderer"; +import {patch} from "@web/core/utils/patch"; + +patch(ProjectTaskKanbanRenderer.prototype, { + get canResequenceGroups() { + return false; + }, +}); diff --git a/project_task_stage_lock/views/project.xml b/project_task_stage_lock/views/project.xml new file mode 100644 index 0000000000..50056d9018 --- /dev/null +++ b/project_task_stage_lock/views/project.xml @@ -0,0 +1,15 @@ + + + + project.task.type.list.inherited - project_task_stage_lock + project.task.type + + + + + + + +