odoo-addon-helpdesk-mgmt-fieldservice 16.0.1.1.0__py3-none-any.whl → 18.0.1.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/helpdesk_mgmt_fieldservice/README.rst +30 -20
- odoo/addons/helpdesk_mgmt_fieldservice/__manifest__.py +1 -1
- odoo/addons/helpdesk_mgmt_fieldservice/i18n/helpdesk_mgmt_fieldservice.pot +2 -39
- odoo/addons/helpdesk_mgmt_fieldservice/i18n/it.po +7 -7
- odoo/addons/helpdesk_mgmt_fieldservice/models/__init__.py +0 -3
- odoo/addons/helpdesk_mgmt_fieldservice/models/fsm_location.py +28 -18
- odoo/addons/helpdesk_mgmt_fieldservice/models/fsm_order.py +0 -15
- odoo/addons/helpdesk_mgmt_fieldservice/models/helpdesk_ticket.py +28 -33
- odoo/addons/helpdesk_mgmt_fieldservice/readme/CONTRIBUTORS.md +6 -0
- odoo/addons/helpdesk_mgmt_fieldservice/readme/{DESCRIPTION.rst → DESCRIPTION.md} +2 -1
- odoo/addons/helpdesk_mgmt_fieldservice/readme/HISTORY.md +3 -0
- odoo/addons/helpdesk_mgmt_fieldservice/readme/{INSTALL.rst → INSTALL.md} +1 -1
- odoo/addons/helpdesk_mgmt_fieldservice/readme/ROADMAP.md +1 -0
- odoo/addons/helpdesk_mgmt_fieldservice/readme/USAGE.md +6 -0
- odoo/addons/helpdesk_mgmt_fieldservice/static/description/index.html +28 -20
- odoo/addons/helpdesk_mgmt_fieldservice/tests/test_helpdesk_ticket_fsm_order.py +51 -26
- odoo/addons/helpdesk_mgmt_fieldservice/views/fsm_location_views.xml +0 -17
- odoo/addons/helpdesk_mgmt_fieldservice/views/fsm_order_views.xml +0 -4
- odoo/addons/helpdesk_mgmt_fieldservice/views/helpdesk_ticket_views.xml +19 -72
- odoo/addons/helpdesk_mgmt_fieldservice/wizards/fsm_order_close_wizard.xml +23 -23
- {odoo_addon_helpdesk_mgmt_fieldservice-16.0.1.1.0.dist-info → odoo_addon_helpdesk_mgmt_fieldservice-18.0.1.1.1.dist-info}/METADATA +38 -27
- odoo_addon_helpdesk_mgmt_fieldservice-18.0.1.1.1.dist-info/RECORD +37 -0
- {odoo_addon_helpdesk_mgmt_fieldservice-16.0.1.1.0.dist-info → odoo_addon_helpdesk_mgmt_fieldservice-18.0.1.1.1.dist-info}/WHEEL +1 -1
- odoo_addon_helpdesk_mgmt_fieldservice-18.0.1.1.1.dist-info/top_level.txt +1 -0
- odoo/addons/helpdesk_mgmt_fieldservice/models/res_partner.py +0 -19
- odoo/addons/helpdesk_mgmt_fieldservice/readme/CONTRIBUTORS.rst +0 -4
- odoo/addons/helpdesk_mgmt_fieldservice/readme/HISTORY.rst +0 -3
- odoo/addons/helpdesk_mgmt_fieldservice/readme/ROADMAP.rst +0 -0
- odoo/addons/helpdesk_mgmt_fieldservice/readme/USAGE.rst +0 -5
- odoo_addon_helpdesk_mgmt_fieldservice-16.0.1.1.0.dist-info/RECORD +0 -38
- odoo_addon_helpdesk_mgmt_fieldservice-16.0.1.1.0.dist-info/top_level.txt +0 -1
- /odoo/addons/helpdesk_mgmt_fieldservice/readme/{CONFIGURE.rst → CONFIGURE.md} +0 -0
|
@@ -11,7 +11,7 @@ Helpdesk Mgmt Fieldservice
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:041e7dac489cc997db4823a8a824b64038532caeb114a49493f75ccfd48b57d7
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -21,18 +21,19 @@ Helpdesk Mgmt Fieldservice
|
|
|
21
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
22
22
|
:alt: License: AGPL-3
|
|
23
23
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github
|
|
24
|
-
:target: https://github.com/OCA/helpdesk/tree/
|
|
24
|
+
:target: https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_fieldservice
|
|
25
25
|
:alt: OCA/helpdesk
|
|
26
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
27
|
-
:target: https://translation.odoo-community.org/projects/helpdesk-
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_fieldservice
|
|
28
28
|
:alt: Translate me on Weblate
|
|
29
29
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
30
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=18.0
|
|
31
31
|
:alt: Try me on Runboat
|
|
32
32
|
|
|
33
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
34
34
|
|
|
35
|
-
This module allows the helpdesk user to track the status of related
|
|
35
|
+
This module allows the helpdesk user to track the status of related
|
|
36
|
+
service orders.
|
|
36
37
|
|
|
37
38
|
**Table of contents**
|
|
38
39
|
|
|
@@ -44,7 +45,7 @@ Installation
|
|
|
44
45
|
|
|
45
46
|
To install this module, you need to:
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
- Install helpdesk_mgmt_fieldservice
|
|
48
49
|
|
|
49
50
|
Configuration
|
|
50
51
|
=============
|
|
@@ -54,18 +55,25 @@ There is no need to do anything to configure this module
|
|
|
54
55
|
Usage
|
|
55
56
|
=====
|
|
56
57
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
- Go to Helpdesk
|
|
59
|
+
- Create or select a ticket
|
|
60
|
+
- In the "Service Orders" tab, you can create service orders for the FSM
|
|
61
|
+
team
|
|
60
62
|
|
|
61
63
|
To close a ticket, all the related service orders must be closed.
|
|
62
64
|
|
|
65
|
+
Known issues / Roadmap
|
|
66
|
+
======================
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
63
70
|
Changelog
|
|
64
71
|
=========
|
|
65
72
|
|
|
66
73
|
12.0.1.0.0 (2016-06-19)
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
-----------------------
|
|
75
|
+
|
|
76
|
+
- [ADD] Add this module OCA/helpdesk project
|
|
69
77
|
|
|
70
78
|
Bug Tracker
|
|
71
79
|
===========
|
|
@@ -73,7 +81,7 @@ Bug Tracker
|
|
|
73
81
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/helpdesk/issues>`_.
|
|
74
82
|
In case of trouble, please check there if your issue has already been reported.
|
|
75
83
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
76
|
-
`feedback <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_fieldservice%0Aversion:%
|
|
84
|
+
`feedback <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_fieldservice%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
77
85
|
|
|
78
86
|
Do not contact contributors directly about support or help with technical issues.
|
|
79
87
|
|
|
@@ -81,21 +89,23 @@ Credits
|
|
|
81
89
|
=======
|
|
82
90
|
|
|
83
91
|
Authors
|
|
84
|
-
|
|
92
|
+
-------
|
|
85
93
|
|
|
86
94
|
* Open Source Integrators
|
|
87
95
|
* Escodoo
|
|
88
96
|
|
|
89
97
|
Contributors
|
|
90
|
-
|
|
98
|
+
------------
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
101
|
+
- Open Source Integrators <contact@opensourceintegrators.com>
|
|
102
|
+
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
|
|
103
|
+
- Marcel Savegnago <marcel.savegnago@escodoo.com.br>
|
|
104
|
+
- Italo Lopes <italo.lopes@camptocamp.com>
|
|
105
|
+
- Iván Todorovich <ivan.todorovich@camptocamp.com>
|
|
96
106
|
|
|
97
107
|
Maintainers
|
|
98
|
-
|
|
108
|
+
-----------
|
|
99
109
|
|
|
100
110
|
This module is maintained by the OCA.
|
|
101
111
|
|
|
@@ -107,6 +117,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
107
117
|
mission is to support the collaborative development of Odoo features and
|
|
108
118
|
promote its widespread use.
|
|
109
119
|
|
|
110
|
-
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/
|
|
120
|
+
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_fieldservice>`_ project on GitHub.
|
|
111
121
|
|
|
112
122
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -18,11 +18,6 @@ msgstr ""
|
|
|
18
18
|
msgid "# Tickets"
|
|
19
19
|
msgstr ""
|
|
20
20
|
|
|
21
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
22
|
-
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_helpdesk_ticket__all_partners
|
|
23
|
-
msgid "All Partners"
|
|
24
|
-
msgstr ""
|
|
25
|
-
|
|
26
21
|
#. module: helpdesk_mgmt_fieldservice
|
|
27
22
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.fsm_order_close_wizard_view_form
|
|
28
23
|
msgid "Cancel"
|
|
@@ -38,21 +33,11 @@ msgstr ""
|
|
|
38
33
|
msgid "Closed FSM Orders"
|
|
39
34
|
msgstr ""
|
|
40
35
|
|
|
41
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
42
|
-
#: model:ir.model,name:helpdesk_mgmt_fieldservice.model_res_partner
|
|
43
|
-
msgid "Contact"
|
|
44
|
-
msgstr ""
|
|
45
|
-
|
|
46
36
|
#. module: helpdesk_mgmt_fieldservice
|
|
47
37
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.helpdesk_ticket_view_service_request_form
|
|
48
38
|
msgid "Create FSM Order"
|
|
49
39
|
msgstr ""
|
|
50
40
|
|
|
51
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
52
|
-
#: model_terms:ir.actions.act_window,help:helpdesk_mgmt_fieldservice.action_fsm_location_ticket
|
|
53
|
-
msgid "Create Helpdesk Tickets"
|
|
54
|
-
msgstr ""
|
|
55
|
-
|
|
56
41
|
#. module: helpdesk_mgmt_fieldservice
|
|
57
42
|
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_order_close_wizard__create_uid
|
|
58
43
|
msgid "Created by"
|
|
@@ -104,7 +89,7 @@ msgid "Helpdesk Ticket"
|
|
|
104
89
|
msgstr ""
|
|
105
90
|
|
|
106
91
|
#. module: helpdesk_mgmt_fieldservice
|
|
107
|
-
#: model:ir.
|
|
92
|
+
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_location__ticket_ids
|
|
108
93
|
msgid "Helpdesk Tickets"
|
|
109
94
|
msgstr ""
|
|
110
95
|
|
|
@@ -113,11 +98,6 @@ msgstr ""
|
|
|
113
98
|
msgid "ID"
|
|
114
99
|
msgstr ""
|
|
115
100
|
|
|
116
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
117
|
-
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_order_close_wizard____last_update
|
|
118
|
-
msgid "Last Modified on"
|
|
119
|
-
msgstr ""
|
|
120
|
-
|
|
121
101
|
#. module: helpdesk_mgmt_fieldservice
|
|
122
102
|
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_order_close_wizard__write_uid
|
|
123
103
|
msgid "Last Updated by"
|
|
@@ -128,25 +108,9 @@ msgstr ""
|
|
|
128
108
|
msgid "Last Updated on"
|
|
129
109
|
msgstr ""
|
|
130
110
|
|
|
131
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
132
|
-
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.helpdesk_ticket_view_service_request_form
|
|
133
|
-
msgid "Open"
|
|
134
|
-
msgstr ""
|
|
135
|
-
|
|
136
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
137
|
-
#: model:ir.ui.menu,name:helpdesk_mgmt_fieldservice.menu_helpdesk_op
|
|
138
|
-
msgid "Operations"
|
|
139
|
-
msgstr ""
|
|
140
|
-
|
|
141
|
-
#. module: helpdesk_mgmt_fieldservice
|
|
142
|
-
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_helpdesk_ticket__partner_domain
|
|
143
|
-
msgid "Partner Domain"
|
|
144
|
-
msgstr ""
|
|
145
|
-
|
|
146
111
|
#. module: helpdesk_mgmt_fieldservice
|
|
147
112
|
#. odoo-python
|
|
148
113
|
#: code:addons/helpdesk_mgmt_fieldservice/models/helpdesk_ticket.py:0
|
|
149
|
-
#, python-format
|
|
150
114
|
msgid "Please complete all service orders related to this ticket to close it."
|
|
151
115
|
msgstr ""
|
|
152
116
|
|
|
@@ -159,7 +123,6 @@ msgstr ""
|
|
|
159
123
|
|
|
160
124
|
#. module: helpdesk_mgmt_fieldservice
|
|
161
125
|
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_helpdesk_ticket__fsm_order_ids
|
|
162
|
-
#: model:ir.ui.menu,name:helpdesk_mgmt_fieldservice.menu_helpdesk_fsm_order
|
|
163
126
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.helpdesk_ticket_view_service_request_form
|
|
164
127
|
msgid "Service Orders"
|
|
165
128
|
msgstr ""
|
|
@@ -6,7 +6,7 @@ msgid ""
|
|
|
6
6
|
msgstr ""
|
|
7
7
|
"Project-Id-Version: Odoo Server 14.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
|
-
"PO-Revision-Date:
|
|
9
|
+
"PO-Revision-Date: 2025-05-16 09:23+0000\n"
|
|
10
10
|
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
|
11
11
|
"Language-Team: none\n"
|
|
12
12
|
"Language: it\n"
|
|
@@ -14,7 +14,7 @@ msgstr ""
|
|
|
14
14
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
15
15
|
"Content-Transfer-Encoding: \n"
|
|
16
16
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
17
|
-
"X-Generator: Weblate 4
|
|
17
|
+
"X-Generator: Weblate 5.10.4\n"
|
|
18
18
|
|
|
19
19
|
#. module: helpdesk_mgmt_fieldservice
|
|
20
20
|
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_location__ticket_count
|
|
@@ -49,7 +49,7 @@ msgstr "Chiudi ordini FSM"
|
|
|
49
49
|
#. module: helpdesk_mgmt_fieldservice
|
|
50
50
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.helpdesk_ticket_view_service_request_form
|
|
51
51
|
msgid "Create FSM Order"
|
|
52
|
-
msgstr "Crea
|
|
52
|
+
msgstr "Crea ordine FSM"
|
|
53
53
|
|
|
54
54
|
#. module: helpdesk_mgmt_fieldservice
|
|
55
55
|
#: model_terms:ir.actions.act_window,help:helpdesk_mgmt_fieldservice.action_fsm_location_ticket
|
|
@@ -91,17 +91,17 @@ msgstr "Località FSM"
|
|
|
91
91
|
#. module: helpdesk_mgmt_fieldservice
|
|
92
92
|
#: model:ir.model,name:helpdesk_mgmt_fieldservice.model_fsm_location
|
|
93
93
|
msgid "Field Service Location"
|
|
94
|
-
msgstr "Località
|
|
94
|
+
msgstr "Località assistenza sul campo"
|
|
95
95
|
|
|
96
96
|
#. module: helpdesk_mgmt_fieldservice
|
|
97
97
|
#: model:ir.model,name:helpdesk_mgmt_fieldservice.model_fsm_order
|
|
98
98
|
msgid "Field Service Order"
|
|
99
|
-
msgstr "Ordine
|
|
99
|
+
msgstr "Ordine assistenza sul campo"
|
|
100
100
|
|
|
101
101
|
#. module: helpdesk_mgmt_fieldservice
|
|
102
102
|
#: model:ir.model.fields,field_description:helpdesk_mgmt_fieldservice.field_fsm_order_close_wizard__team_id
|
|
103
103
|
msgid "Helpdesk Team"
|
|
104
|
-
msgstr "Team
|
|
104
|
+
msgstr "Team assistenza clienti"
|
|
105
105
|
|
|
106
106
|
#. module: helpdesk_mgmt_fieldservice
|
|
107
107
|
#: model:ir.model,name:helpdesk_mgmt_fieldservice.model_helpdesk_ticket
|
|
@@ -205,7 +205,7 @@ msgstr "Risoluzione ticket"
|
|
|
205
205
|
#. module: helpdesk_mgmt_fieldservice
|
|
206
206
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.fsm_order_close_wizard_view_form
|
|
207
207
|
msgid "Ticket Stage"
|
|
208
|
-
msgstr "Fase
|
|
208
|
+
msgstr "Fase ticket"
|
|
209
209
|
|
|
210
210
|
#. module: helpdesk_mgmt_fieldservice
|
|
211
211
|
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_fieldservice.view_fsm_location_ticket_form
|
|
@@ -8,30 +8,40 @@ from odoo import fields, models
|
|
|
8
8
|
class FSMLocation(models.Model):
|
|
9
9
|
_inherit = "fsm.location"
|
|
10
10
|
|
|
11
|
-
ticket_count = fields.Integer(
|
|
11
|
+
ticket_count = fields.Integer(
|
|
12
|
+
compute="_compute_ticket_count",
|
|
13
|
+
string="# Tickets",
|
|
14
|
+
)
|
|
15
|
+
ticket_ids = fields.One2many(
|
|
16
|
+
"helpdesk.ticket",
|
|
17
|
+
"fsm_location_id",
|
|
18
|
+
string="Helpdesk Tickets",
|
|
19
|
+
readonly=True,
|
|
20
|
+
)
|
|
12
21
|
|
|
13
22
|
def _compute_ticket_count(self):
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[("fsm_location_id", "
|
|
23
|
+
counts = dict(
|
|
24
|
+
self.env["helpdesk.ticket"]._read_group(
|
|
25
|
+
domain=[("fsm_location_id", "in", self.ids)],
|
|
26
|
+
groupby=["fsm_location_id"],
|
|
27
|
+
aggregates=["__count"],
|
|
17
28
|
)
|
|
29
|
+
)
|
|
30
|
+
for rec in self:
|
|
31
|
+
rec.ticket_count = counts.get(rec, 0)
|
|
18
32
|
|
|
19
33
|
def action_view_ticket(self):
|
|
20
|
-
ticket_ids = self.env["helpdesk.ticket"].search(
|
|
21
|
-
[("fsm_location_id", "=", self.id)]
|
|
22
|
-
)
|
|
23
34
|
action = self.env["ir.actions.actions"]._for_xml_id(
|
|
24
|
-
"
|
|
35
|
+
"helpdesk_mgmt.helpdesk_ticket_action"
|
|
25
36
|
)
|
|
26
|
-
action["context"] = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
action["context"] = {
|
|
38
|
+
"search_default_open": 1,
|
|
39
|
+
"default_fsm_location_id": len(self) == 1 and self.id,
|
|
40
|
+
"default_partner_id": len(self.partner_id) == 1 and self.partner_id.id,
|
|
41
|
+
}
|
|
42
|
+
if len(self.ticket_ids) == 1:
|
|
43
|
+
action["views"] = [(False, "form")]
|
|
44
|
+
action["res_id"] = self.ticket_ids.id
|
|
32
45
|
else:
|
|
33
|
-
action["domain"] = [("
|
|
34
|
-
action["context"].update(
|
|
35
|
-
{"search_default_is_open": 1, "default_fsm_location_id": self.id}
|
|
36
|
-
)
|
|
46
|
+
action["domain"] = [("fsm_location_id", "in", self.ids)]
|
|
37
47
|
return action
|
|
@@ -29,18 +29,3 @@ class FSMOrder(models.Model):
|
|
|
29
29
|
},
|
|
30
30
|
}
|
|
31
31
|
return res
|
|
32
|
-
|
|
33
|
-
def action_view_order(self):
|
|
34
|
-
"""
|
|
35
|
-
This function returns an action that displays a full FSM Order
|
|
36
|
-
form when viewing an FSM Order from a ticket.
|
|
37
|
-
"""
|
|
38
|
-
action = self.env["ir.actions.actions"]._for_xml_id(
|
|
39
|
-
"fieldservice.action_fsm_operation_order"
|
|
40
|
-
)
|
|
41
|
-
order = self.env["fsm.order"].search([("id", "=", self.id)])
|
|
42
|
-
action["views"] = [
|
|
43
|
-
(self.env.ref("fieldservice." + "fsm_order_form").id, "form")
|
|
44
|
-
]
|
|
45
|
-
action["res_id"] = order.id
|
|
46
|
-
return action
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
# Copyright (C) 2020 - TODAY, Marcel Savegnago - Escodoo
|
|
3
3
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
4
4
|
|
|
5
|
-
from odoo import
|
|
5
|
+
from odoo import api, fields, models
|
|
6
6
|
from odoo.exceptions import ValidationError
|
|
7
|
+
from odoo.tools import html2plaintext
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class HelpdeskTicket(models.Model):
|
|
10
11
|
_inherit = "helpdesk.ticket"
|
|
11
12
|
|
|
12
13
|
fsm_order_ids = fields.One2many("fsm.order", "ticket_id", string="Service Orders")
|
|
13
|
-
fsm_location_id = fields.Many2one(
|
|
14
|
+
fsm_location_id = fields.Many2one(
|
|
15
|
+
"fsm.location",
|
|
16
|
+
string="FSM Location",
|
|
17
|
+
compute="_compute_fsm_location_id",
|
|
18
|
+
store=True,
|
|
19
|
+
readonly=False,
|
|
20
|
+
)
|
|
14
21
|
resolution = fields.Text()
|
|
15
|
-
# these fields are needed to obtain depreciation of onchange in v14
|
|
16
|
-
partner_domain = fields.Integer(compute="_compute_partner_domain")
|
|
17
|
-
all_partners = fields.Boolean(compute="_compute_partner_domain")
|
|
18
22
|
|
|
19
23
|
@api.constrains("stage_id")
|
|
20
24
|
def _validate_stage_fields(self):
|
|
@@ -25,40 +29,30 @@ class HelpdeskTicket(models.Model):
|
|
|
25
29
|
and not all(rec.fsm_order_ids.mapped("stage_id.is_closed"))
|
|
26
30
|
):
|
|
27
31
|
raise ValidationError(
|
|
28
|
-
_(
|
|
32
|
+
self.env._(
|
|
29
33
|
"Please complete all service orders "
|
|
30
34
|
"related to this ticket to close it."
|
|
31
35
|
)
|
|
32
36
|
)
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if self.fsm_location_id and self.partner_id:
|
|
39
|
-
if self.partner_id.service_location_id != self.fsm_location_id:
|
|
40
|
-
self.partner_id = False
|
|
41
|
-
else:
|
|
42
|
-
if self.partner_id:
|
|
43
|
-
if not self.fsm_location_id:
|
|
44
|
-
self.fsm_location_id = self.partner_id.service_location_id
|
|
45
|
-
|
|
46
|
-
# Updating domain via onchange is deprecated in odoo v14
|
|
47
|
-
@api.depends("fsm_location_id")
|
|
48
|
-
def _compute_partner_domain(self):
|
|
38
|
+
@api.depends("partner_id")
|
|
39
|
+
def _compute_fsm_location_id(self):
|
|
40
|
+
# When changing the partner, the default service location is set
|
|
41
|
+
# Unless the existing location is valid for the new partner
|
|
49
42
|
for rec in self:
|
|
50
|
-
rec.
|
|
51
|
-
|
|
52
|
-
if
|
|
53
|
-
rec.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
if not rec.partner_id:
|
|
44
|
+
continue
|
|
45
|
+
if (
|
|
46
|
+
rec.partner_id.commercial_partner_id
|
|
47
|
+
== rec.fsm_location_id.commercial_partner_id
|
|
48
|
+
):
|
|
49
|
+
continue
|
|
50
|
+
if rec.partner_id.service_location_id:
|
|
51
|
+
rec.fsm_location_id = rec.partner_id.service_location_id
|
|
52
|
+
elif rec.partner_id.commercial_partner_id.service_location_id:
|
|
53
|
+
rec.fsm_location_id = (
|
|
54
|
+
rec.partner_id.commercial_partner_id.service_location_id
|
|
55
|
+
)
|
|
62
56
|
|
|
63
57
|
def action_create_order(self):
|
|
64
58
|
"""
|
|
@@ -73,6 +67,7 @@ class HelpdeskTicket(models.Model):
|
|
|
73
67
|
"default_ticket_id": self.id,
|
|
74
68
|
"default_priority": self.priority,
|
|
75
69
|
"default_location_id": self.fsm_location_id.id,
|
|
70
|
+
"default_description": html2plaintext(self.description).strip(),
|
|
76
71
|
}
|
|
77
72
|
res = self.env.ref("fieldservice.fsm_order_form", False)
|
|
78
73
|
action["views"] = [(res and res.id or False, "form")]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
- Bhavesh Odedra \<<bodedra@opensourceintegrators.com>\>
|
|
2
|
+
- Open Source Integrators \<<contact@opensourceintegrators.com>\>
|
|
3
|
+
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
|
|
4
|
+
- Marcel Savegnago \<<marcel.savegnago@escodoo.com.br>\>
|
|
5
|
+
- Italo Lopes \<<italo.lopes@camptocamp.com>\>
|
|
6
|
+
- Iván Todorovich \<<ivan.todorovich@camptocamp.com>\>
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
This module allows the helpdesk user to track the status of related
|
|
1
|
+
This module allows the helpdesk user to track the status of related
|
|
2
|
+
service orders.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -372,25 +372,27 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:041e7dac489cc997db4823a8a824b64038532caeb114a49493f75ccfd48b57d7
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
|
-
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/
|
|
378
|
-
<p>This module allows the helpdesk user to track the status of related
|
|
377
|
+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_fieldservice"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt_fieldservice"><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/helpdesk&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
|
+
<p>This module allows the helpdesk user to track the status of related
|
|
379
|
+
service orders.</p>
|
|
379
380
|
<p><strong>Table of contents</strong></p>
|
|
380
381
|
<div class="contents local topic" id="contents">
|
|
381
382
|
<ul class="simple">
|
|
382
383
|
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
|
|
383
384
|
<li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
|
|
384
385
|
<li><a class="reference internal" href="#usage" id="toc-entry-3">Usage</a></li>
|
|
385
|
-
<li><a class="reference internal" href="#
|
|
386
|
-
<li><a class="reference internal" href="#
|
|
386
|
+
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-4">Known issues / Roadmap</a></li>
|
|
387
|
+
<li><a class="reference internal" href="#changelog" id="toc-entry-5">Changelog</a><ul>
|
|
388
|
+
<li><a class="reference internal" href="#section-1" id="toc-entry-6">12.0.1.0.0 (2016-06-19)</a></li>
|
|
387
389
|
</ul>
|
|
388
390
|
</li>
|
|
389
|
-
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-
|
|
390
|
-
<li><a class="reference internal" href="#credits" id="toc-entry-
|
|
391
|
-
<li><a class="reference internal" href="#authors" id="toc-entry-
|
|
392
|
-
<li><a class="reference internal" href="#contributors" id="toc-entry-
|
|
393
|
-
<li><a class="reference internal" href="#maintainers" id="toc-entry-
|
|
391
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-7">Bug Tracker</a></li>
|
|
392
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-8">Credits</a><ul>
|
|
393
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-9">Authors</a></li>
|
|
394
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-10">Contributors</a></li>
|
|
395
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-11">Maintainers</a></li>
|
|
394
396
|
</ul>
|
|
395
397
|
</li>
|
|
396
398
|
</ul>
|
|
@@ -411,47 +413,53 @@ ul.auto-toc {
|
|
|
411
413
|
<ul class="simple">
|
|
412
414
|
<li>Go to Helpdesk</li>
|
|
413
415
|
<li>Create or select a ticket</li>
|
|
414
|
-
<li>In the “Service Orders” tab, you can create service orders for the FSM
|
|
416
|
+
<li>In the “Service Orders” tab, you can create service orders for the FSM
|
|
417
|
+
team</li>
|
|
415
418
|
</ul>
|
|
416
419
|
<p>To close a ticket, all the related service orders must be closed.</p>
|
|
417
420
|
</div>
|
|
421
|
+
<div class="section" id="known-issues-roadmap">
|
|
422
|
+
<h2><a class="toc-backref" href="#toc-entry-4">Known issues / Roadmap</a></h2>
|
|
423
|
+
</div>
|
|
418
424
|
<div class="section" id="changelog">
|
|
419
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
425
|
+
<h2><a class="toc-backref" href="#toc-entry-5">Changelog</a></h2>
|
|
420
426
|
<div class="section" id="section-1">
|
|
421
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
427
|
+
<h3><a class="toc-backref" href="#toc-entry-6">12.0.1.0.0 (2016-06-19)</a></h3>
|
|
422
428
|
<ul class="simple">
|
|
423
429
|
<li>[ADD] Add this module OCA/helpdesk project</li>
|
|
424
430
|
</ul>
|
|
425
431
|
</div>
|
|
426
432
|
</div>
|
|
427
433
|
<div class="section" id="bug-tracker">
|
|
428
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
434
|
+
<h2><a class="toc-backref" href="#toc-entry-7">Bug Tracker</a></h2>
|
|
429
435
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/helpdesk/issues">GitHub Issues</a>.
|
|
430
436
|
In case of trouble, please check there if your issue has already been reported.
|
|
431
437
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
432
|
-
<a class="reference external" href="https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_fieldservice%0Aversion:%
|
|
438
|
+
<a class="reference external" href="https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt_fieldservice%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
433
439
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
434
440
|
</div>
|
|
435
441
|
<div class="section" id="credits">
|
|
436
|
-
<h2><a class="toc-backref" href="#toc-entry-
|
|
442
|
+
<h2><a class="toc-backref" href="#toc-entry-8">Credits</a></h2>
|
|
437
443
|
<div class="section" id="authors">
|
|
438
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
444
|
+
<h3><a class="toc-backref" href="#toc-entry-9">Authors</a></h3>
|
|
439
445
|
<ul class="simple">
|
|
440
446
|
<li>Open Source Integrators</li>
|
|
441
447
|
<li>Escodoo</li>
|
|
442
448
|
</ul>
|
|
443
449
|
</div>
|
|
444
450
|
<div class="section" id="contributors">
|
|
445
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
451
|
+
<h3><a class="toc-backref" href="#toc-entry-10">Contributors</a></h3>
|
|
446
452
|
<ul class="simple">
|
|
447
453
|
<li>Bhavesh Odedra <<a class="reference external" href="mailto:bodedra@opensourceintegrators.com">bodedra@opensourceintegrators.com</a>></li>
|
|
448
454
|
<li>Open Source Integrators <<a class="reference external" href="mailto:contact@opensourceintegrators.com">contact@opensourceintegrators.com</a>></li>
|
|
449
455
|
<li>Serpent Consulting Services Pvt. Ltd. <<a class="reference external" href="mailto:support@serpentcs.com">support@serpentcs.com</a>></li>
|
|
450
456
|
<li>Marcel Savegnago <<a class="reference external" href="mailto:marcel.savegnago@escodoo.com.br">marcel.savegnago@escodoo.com.br</a>></li>
|
|
457
|
+
<li>Italo Lopes <<a class="reference external" href="mailto:italo.lopes@camptocamp.com">italo.lopes@camptocamp.com</a>></li>
|
|
458
|
+
<li>Iván Todorovich <<a class="reference external" href="mailto:ivan.todorovich@camptocamp.com">ivan.todorovich@camptocamp.com</a>></li>
|
|
451
459
|
</ul>
|
|
452
460
|
</div>
|
|
453
461
|
<div class="section" id="maintainers">
|
|
454
|
-
<h3><a class="toc-backref" href="#toc-entry-
|
|
462
|
+
<h3><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h3>
|
|
455
463
|
<p>This module is maintained by the OCA.</p>
|
|
456
464
|
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
457
465
|
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
@@ -459,7 +467,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
459
467
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
460
468
|
mission is to support the collaborative development of Odoo features and
|
|
461
469
|
promote its widespread use.</p>
|
|
462
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/helpdesk/tree/
|
|
470
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt_fieldservice">OCA/helpdesk</a> project on GitHub.</p>
|
|
463
471
|
<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>
|
|
464
472
|
</div>
|
|
465
473
|
</div>
|