Skip to content

Commit 0f701d5

Browse files
[ADD] document_page_helpdesk_mgmt: add new module
1 parent f747aa3 commit 0f701d5

File tree

16 files changed

+714
-0
lines changed

16 files changed

+714
-0
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
======================
2+
Document Page Helpdesk
3+
======================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:7719f9960f272becd8947205cf740d773e4a6a5599e3f2014dfd945f87227896
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
20+
:target: https://github.com/OCA/knowledge/tree/18.0/document_page_helpdesk_mgmt
21+
:alt: OCA/knowledge
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_helpdesk_mgmt
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows linking document pages to helpdesk tickets.
32+
33+
**Table of contents**
34+
35+
.. contents::
36+
:local:
37+
38+
Usage
39+
=====
40+
41+
- Go to a helpdesk ticket and click on "Wiki Pages" to see linked
42+
documents or to create new ones.
43+
44+
Bug Tracker
45+
===========
46+
47+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
48+
In case of trouble, please check there if your issue has already been reported.
49+
If you spotted it first, help us to smash it by providing a detailed and welcomed
50+
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_helpdesk_mgmt%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
51+
52+
Do not contact contributors directly about support or help with technical issues.
53+
54+
Credits
55+
=======
56+
57+
Authors
58+
-------
59+
60+
* Escodoo
61+
62+
Contributors
63+
------------
64+
65+
- ``Escodoo <https://escodoo.com.br>``\ \_:
66+
67+
- Cristiano Mafra Junior cristiano.mafra@escodoo.com.br
68+
69+
Maintainers
70+
-----------
71+
72+
This module is maintained by the OCA.
73+
74+
.. image:: https://odoo-community.org/logo.png
75+
:alt: Odoo Community Association
76+
:target: https://odoo-community.org
77+
78+
OCA, or the Odoo Community Association, is a nonprofit organization whose
79+
mission is to support the collaborative development of Odoo features and
80+
promote its widespread use.
81+
82+
.. |maintainer-CristianoMafraJunior| image:: https://github.com/CristianoMafraJunior.png?size=40px
83+
:target: https://github.com/CristianoMafraJunior
84+
:alt: CristianoMafraJunior
85+
86+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
87+
88+
|maintainer-CristianoMafraJunior|
89+
90+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/document_page_helpdesk_mgmt>`_ project on GitHub.
91+
92+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2026 - TODAY, Cristiano Mafra Junior <cristiano.mafra@escodoo.com.br>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Document Page Helpdesk",
6+
"summary": "This module links document pages to helpdesk tickets",
7+
"version": "18.0.1.0.0",
8+
"category": "Helpdesk",
9+
"author": "Escodoo, Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/knowledge",
11+
"license": "AGPL-3",
12+
"depends": ["helpdesk_mgmt", "document_page"],
13+
"maintainers": ["CristianoMafraJunior"],
14+
"data": ["views/document_page_views.xml", "views/helpdesk_ticket_views.xml"],
15+
"installable": True,
16+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import document_page
2+
from . import helpdesk_ticket
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright 2026 - TODAY, Cristiano Mafra Junior <cristiano.mafra@escodoo.com.br>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class DocumentPage(models.Model):
8+
_inherit = "document.page"
9+
10+
helpdesk_ticket_id = fields.Many2one(
11+
string="Helpdesk Ticket", comodel_name="helpdesk.ticket"
12+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2026 - TODAY, Cristiano Mafra Junior <cristiano.mafra@escodoo.com.br>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class HelpdeskTicket(models.Model):
8+
_inherit = "helpdesk.ticket"
9+
10+
document_page_ids = fields.One2many(
11+
string="Wiki", comodel_name="document.page", inverse_name="helpdesk_ticket_id"
12+
)
13+
document_page_count = fields.Integer(compute="_compute_document_page_count")
14+
15+
def _compute_document_page_count(self):
16+
for rec in self:
17+
rec.document_page_count = len(rec.document_page_ids)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* `Escodoo <https://escodoo.com.br>`_:
2+
3+
* Cristiano Mafra Junior <cristiano.mafra@escodoo.com.br>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows linking document pages to helpdesk tickets.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Go to a helpdesk ticket and click on "Wiki Pages" to see linked documents
2+
or to create new ones.

0 commit comments

Comments
 (0)