Skip to content

Commit 49e5c4a

Browse files
committed
[14.0][MIG]helpdesk_mgmt_project: Migration to 14.0
1 parent 53312f3 commit 49e5c4a

File tree

6 files changed

+18
-3
lines changed

6 files changed

+18
-3
lines changed

helpdesk_mgmt_project/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Helpdesk Project",
55
"summary": "Add the option to select project in the tickets.",
6-
"version": "14.0.1.0.1",
6+
"version": "14.0.1.0.0",
77
"license": "AGPL-3",
88
"category": "After-Sales",
99
"author": "PuntSistemes S.L.U., " "Odoo Community Association (OCA)",

helpdesk_mgmt_project/models/project.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
class ProjectProject(models.Model):
55
_inherit = "project.project"
66

7-
ticket_ids = fields.One2many("helpdesk.ticket", "project_id", string="Tickets")
7+
ticket_ids = fields.One2many(
8+
comodel_name="helpdesk.ticket", inverse_name="project_id", string="Tickets"
9+
)
810
ticket_count = fields.Integer(
911
compute="_compute_ticket_count", string="Ticket Count", store=True
1012
)

helpdesk_mgmt_project/models/project_task.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
class ProjectTask(models.Model):
55
_inherit = "project.task"
66

7-
ticket_ids = fields.One2many("helpdesk.ticket", "task_id", string="Tickets")
7+
ticket_ids = fields.One2many(
8+
comodel_name="helpdesk.ticket", inverse_name="task_id", string="Tickets"
9+
)
810
ticket_count = fields.Integer(
911
compute="_compute_ticket_count", string="Ticket Count", store=True
1012
)

helpdesk_mgmt_project/readme/CONTRIBUTORS.rst

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
* `Solvos <https://www.solvos.es>`_:
1414

1515
* David Alonso
16+
17+
* `Sygel <https://www.sygel.es>`_:
18+
19+
* Manuel Regidor
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../helpdesk_mgmt_project

setup/helpdesk_mgmt_project/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)