Skip to content

Commit

Permalink
[MIG] project_type: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliconiaSolutions committed Dec 23, 2024
1 parent a485ec8 commit 75dc49a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 27 deletions.
40 changes: 21 additions & 19 deletions project_type/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -38,19 +38,19 @@ 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
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/project/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 <https://github.com/OCA/project/issues/new?body=module:%20project_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/project/issues/new?body=module:%20project_type%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -67,20 +67,22 @@ Authors
Contributors
------------

- ADHOC SA
- `Tecnativa <https://www.tecnativa.com>`__:
- ADHOC SA
- `Tecnativa <https://www.tecnativa.com>`__:

- Vicent Cubells
- Vicent Cubells

- Nikul Chaudhary <nikulchaudhary2112@gmail.com>
- `Onestein <https://www.onestein.nl>`__:
- Nikul Chaudhary <nikulchaudhary2112@gmail.com>
- `Onestein <https://www.onestein.nl>`__:

- Dennis Sluijk
- Dennis Sluijk

- `Open Source Integrators <https://opensourceintegrators.com>`__:
- `Open Source Integrators <https://opensourceintegrators.com>`__:

- Daniel Reis <dreis@opensourceintegrators.com>
- Murtaza Mithaiwala <mmithaiwala@opensourceintegrators.com>
- Daniel Reis <dreis@opensourceintegrators.com>
- Murtaza Mithaiwala <mmithaiwala@opensourceintegrators.com>

- ``Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>``\ \_

Maintainers
-----------
Expand All @@ -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 <https://github.com/OCA/project/tree/17.0/project_type>`_ project on GitHub.
This module is part of the `OCA/project <https://github.com/OCA/project/tree/18.0/project_type>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion project_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion project_type/models/project_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions project_type/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- [Open Source Integrators](https://opensourceintegrators.com):
- Daniel Reis \<<dreis@opensourceintegrators.com>\>
- Murtaza Mithaiwala \<<mmithaiwala@opensourceintegrators.com>\>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_
7 changes: 4 additions & 3 deletions project_type/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Project Types</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8180a909eb114a391247aa1b57f158fa9aeda4b4dd1a8310845f625b6c475bb8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/project/tree/17.0/project_type"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_type"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/project&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/project/tree/18.0/project_type"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/project-18-0/project-18-0-project_type"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/project&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the category type fields in project and task.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -399,7 +399,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/project/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/project/issues/new?body=module:%20project_type%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/project/issues/new?body=module:%20project_type%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -430,6 +430,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Murtaza Mithaiwala &lt;<a class="reference external" href="mailto:mmithaiwala&#64;opensourceintegrators.com">mmithaiwala&#64;opensourceintegrators.com</a>&gt;</li>
</ul>
</li>
<li><tt class="docutils literal">Heliconia Solutions Pvt. Ltd. <span class="pre">&lt;https://www.heliconia.io&gt;</span></tt>_</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -441,7 +442,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project/tree/17.0/project_type">OCA/project</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project/tree/18.0/project_type">OCA/project</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions project_type/views/project_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
</page>
<page string="Subtypes" name="page_subtypes">
<field name="child_ids">
<tree>
<list>
<field name="name" />
</tree>
</list>
</field>
</page>
</notebook>
Expand Down Expand Up @@ -67,7 +67,7 @@
<record id="action_project_type" model="ir.actions.act_window">
<field name="name">Project Types</field>
<field name="res_model">project.type</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
</record>
<menuitem
name="Project Types"
Expand Down

0 comments on commit 75dc49a

Please sign in to comment.