From 75dc49a012135f1fcc3250b48f0739141043abf8 Mon Sep 17 00:00:00 2001 From: Bhavesh Heliconia Date: Fri, 20 Dec 2024 16:43:57 +0530 Subject: [PATCH] [MIG] project_type: Migration to 18.0 --- project_type/README.rst | 40 ++++++++++++---------- project_type/__manifest__.py | 2 +- project_type/models/project_type.py | 2 +- project_type/readme/CONTRIBUTORS.md | 1 + project_type/static/description/index.html | 7 ++-- project_type/views/project_type_views.xml | 6 ++-- 6 files changed, 31 insertions(+), 27 deletions(-) diff --git a/project_type/README.rst b/project_type/README.rst index fc73c2cb6f..79ba104818 100644 --- a/project_type/README.rst +++ b/project_type/README.rst @@ -17,13 +17,13 @@ Project Types :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/17.0/project_type + :target: https://github.com/OCA/project/tree/18.0/project_type :alt: OCA/project .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_type + :target: https://translation.odoo-community.org/projects/project-18-0/project-18-0-project_type :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=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/project&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,11 +38,11 @@ This module adds the category type fields in project and task. Usage ===== -- Go to **Project > Configuration > Project Types** and add some items - in order to categorize projects and tasks as you want. -- Go to Project Dashboard and edit any project and enter its type. -- Now you can group projects by type. -- This is the same for tasks. +- Go to **Project > Configuration > Project Types** and add some items + in order to categorize projects and tasks as you want. +- Go to Project Dashboard and edit any project and enter its type. +- Now you can group projects by type. +- This is the same for tasks. Bug Tracker =========== @@ -50,7 +50,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -67,20 +67,22 @@ Authors Contributors ------------ -- ADHOC SA -- `Tecnativa `__: +- ADHOC SA +- `Tecnativa `__: - - Vicent Cubells + - Vicent Cubells -- Nikul Chaudhary -- `Onestein `__: +- Nikul Chaudhary +- `Onestein `__: - - Dennis Sluijk + - Dennis Sluijk -- `Open Source Integrators `__: +- `Open Source Integrators `__: - - Daniel Reis - - Murtaza Mithaiwala + - Daniel Reis + - Murtaza Mithaiwala + +- ``Heliconia Solutions Pvt. Ltd. ``\ \_ Maintainers ----------- @@ -95,6 +97,6 @@ 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. +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_type/__manifest__.py b/project_type/__manifest__.py index d5f3943928..b0659c3ba7 100644 --- a/project_type/__manifest__.py +++ b/project_type/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Project Types", - "version": "17.0.1.0.2", + "version": "18.0.1.0.0", "category": "Project", "author": "ADHOC SA," "Tecnativa, " "Onestein, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/project", diff --git a/project_type/models/project_type.py b/project_type/models/project_type.py index 03fa971986..0e235dd25b 100644 --- a/project_type/models/project_type.py +++ b/project_type/models/project_type.py @@ -24,7 +24,7 @@ class ProjectType(models.Model): @api.constrains("parent_id") def check_parent_id(self): - if not self._check_recursion(): + if self._has_cycle(): raise ValidationError(_("You cannot create recursive project types.")) @api.depends("name", "parent_id.complete_name") diff --git a/project_type/readme/CONTRIBUTORS.md b/project_type/readme/CONTRIBUTORS.md index 8cfaee9213..7377e1e84f 100644 --- a/project_type/readme/CONTRIBUTORS.md +++ b/project_type/readme/CONTRIBUTORS.md @@ -7,3 +7,4 @@ - [Open Source Integrators](https://opensourceintegrators.com): - Daniel Reis \<\> - Murtaza Mithaiwala \<\> +- `Heliconia Solutions Pvt. Ltd. `_ diff --git a/project_type/static/description/index.html b/project_type/static/description/index.html index e0ae8b2461..effb62cd1e 100644 --- a/project_type/static/description/index.html +++ b/project_type/static/description/index.html @@ -369,7 +369,7 @@

Project Types

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:8180a909eb114a391247aa1b57f158fa9aeda4b4dd1a8310845f625b6c475bb8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module adds the category type fields in project and task.

Table of contents

@@ -399,7 +399,7 @@

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.

+feedback.

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

@@ -430,6 +430,7 @@

Contributors

  • Murtaza Mithaiwala <mmithaiwala@opensourceintegrators.com>
  • +
  • Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>_
  • @@ -441,7 +442,7 @@

    Maintainers

    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.

    +

    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_type/views/project_type_views.xml b/project_type/views/project_type_views.xml index 8928fcd97f..03f9bfb828 100644 --- a/project_type/views/project_type_views.xml +++ b/project_type/views/project_type_views.xml @@ -34,9 +34,9 @@ - + - + @@ -67,7 +67,7 @@ Project Types project.type - tree,form + list,form