-
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] helpdesk_mgmt: Migration to 18.0
- Loading branch information
1 parent
3602d74
commit c9aada8
Showing
16 changed files
with
311 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,13 @@ Helpdesk Management | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github | ||
:target: https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt | ||
:target: https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt | ||
:alt: OCA/helpdesk | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt | ||
:target: https://translation.odoo-community.org/projects/helpdesk-18-0/helpdesk-18-0-helpdesk_mgmt | ||
: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/helpdesk&target_branch=17.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
@@ -125,11 +125,11 @@ permissions set in Helpdesk. | |
not assigned to any team nor user. | ||
3. *User*: User is able to see all the tickets. | ||
|
||
.. |image1| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Channels.PNG | ||
.. |image2| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Categories.PNG | ||
.. |image3| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Stages.PNG | ||
.. |image4| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Teams.PNG | ||
.. |image5| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tags.PNG | ||
.. |image1| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Channels.PNG | ||
.. |image2| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Categories.PNG | ||
.. |image3| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Stages.PNG | ||
.. |image4| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Teams.PNG | ||
.. |image5| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tags.PNG | ||
|
||
Usage | ||
===== | ||
|
@@ -156,25 +156,25 @@ To create a new ticket from the kanban view: | |
|
||
|Tickets01| | ||
|
||
.. |Tickets_Kanban| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG | ||
.. |Tickets01| image:: https://raw.githubusercontent.com/OCA/helpdesk/17.0/helpdesk_mgmt/static/description/Tickets01.PNG | ||
.. |Tickets_Kanban| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets_Kanban.PNG | ||
.. |Tickets01| image:: https://raw.githubusercontent.com/OCA/helpdesk/18.0/helpdesk_mgmt/static/description/Tickets01.PNG | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
- Add a tour feature similar to what the ``project`` module defines to | ||
discover projects / tasks. | ||
- Update portal tests defined in ``tests/test_portal.py`` to rely on | ||
tour specs (in JS) in order to replicate the navigation behavior of | ||
portal users. | ||
- Add a tour feature similar to what the ``project`` module defines to | ||
discover projects / tasks. | ||
- Update portal tests defined in ``tests/test_portal.py`` to rely on | ||
tour specs (in JS) in order to replicate the navigation behavior of | ||
portal users. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/helpdesk/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/helpdesk/issues/new?body=module:%20helpdesk_mgmt%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/helpdesk/issues/new?body=module:%20helpdesk_mgmt%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. | ||
|
||
|
@@ -195,54 +195,54 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- `Domatix <https://www.domatix.com>`__: | ||
- `Domatix <https://www.domatix.com>`__: | ||
|
||
- Carlos Martínez | ||
- Catalin Airimitoaie | ||
- Álvaro López | ||
- Samuel Calvo | ||
- Carlos Martínez | ||
- Catalin Airimitoaie | ||
- Álvaro López | ||
- Samuel Calvo | ||
|
||
- `Adaptive City <https://www.adaptivecity.com>`__: | ||
- `Adaptive City <https://www.adaptivecity.com>`__: | ||
|
||
- Aitor Bouzas | ||
- Aitor Bouzas | ||
|
||
- `SDi Soluciones, S.L. <https://www.sdi.es>`__: | ||
- `SDi Soluciones, S.L. <https://www.sdi.es>`__: | ||
|
||
- Oscar Soto | ||
- Jorge Luis Quinteros | ||
- Oscar Soto | ||
- Jorge Luis Quinteros | ||
|
||
- `C2i Change 2 improve <http://www.c2i.es>`__: | ||
- `C2i Change 2 improve <http://www.c2i.es>`__: | ||
|
||
- Eduardo Magdalena <[email protected]> | ||
- Eduardo Magdalena <[email protected]> | ||
|
||
- `Factor Libre <https://factorlibre.com>`__: | ||
- `Factor Libre <https://factorlibre.com>`__: | ||
|
||
- María Alhambra | ||
- Daniel Cano | ||
- María Alhambra | ||
- Daniel Cano | ||
|
||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Pedro M. Baeza | ||
- Víctor Martínez | ||
- Carolina Fernandez | ||
- Carlos Roca | ||
- Pedro M. Baeza | ||
- Víctor Martínez | ||
- Carolina Fernandez | ||
- Carlos Roca | ||
|
||
- `ID42 Sistemas <https://www.id42.com.br>`__: | ||
- `ID42 Sistemas <https://www.id42.com.br>`__: | ||
|
||
- Marcel Savegnago | ||
- Eduardo Aparício | ||
- Marcel Savegnago | ||
- Eduardo Aparício | ||
|
||
- `Obertix <https://www.obertix.net>`__: | ||
- `Obertix <https://www.obertix.net>`__: | ||
|
||
- Vicent Cubells | ||
- Vicent Cubells | ||
|
||
- `Solvos <https://www.solvos.es>`__: | ||
- `Solvos <https://www.solvos.es>`__: | ||
|
||
- David Alonso | ||
- David Alonso | ||
|
||
- `XCG Consulting <https://xcg-consulting.fr>`__: | ||
- `XCG Consulting <https://xcg-consulting.fr>`__: | ||
|
||
- Houzéfa Abbasbhay | ||
- Houzéfa Abbasbhay | ||
|
||
Maintainers | ||
----------- | ||
|
@@ -257,6 +257,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/helpdesk <https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt>`_ project on GitHub. | ||
This module is part of the `OCA/helpdesk <https://github.com/OCA/helpdesk/tree/18.0/helpdesk_mgmt>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {_t} from "@web/core/l10n/translation"; | ||
import publicWidget from "@web/legacy/js/public/public_widget"; | ||
|
||
publicWidget.registry.NewTicket = publicWidget.Widget.extend({ | ||
selector: "form[action='/submitted/ticket']", | ||
events: Object.assign( | ||
{}, | ||
{ | ||
'change input[name="attachment"]': "_onChangeAttachment", | ||
} | ||
), | ||
init() { | ||
this._super(...arguments); | ||
this.notification = this.bindService("notification"); | ||
}, | ||
_onChangeAttachment(ev) { | ||
ev.preventDefault(); | ||
// eslint-disable-next-line no-undef | ||
const attachment_input = document.getElementById("attachment"); | ||
const max_upload_size = attachment_input.getAttribute("max_upload_size"); | ||
// eslint-disable-next-line no-undef | ||
const dt = new DataTransfer(); | ||
for (const file of attachment_input.files) { | ||
if (file.size > max_upload_size) { | ||
var message = `${file.name} file exceed the maximum file size of ${this.humanSize(max_upload_size)}.`; | ||
this.notification.add(_t(message), {type: "danger"}); | ||
} else { | ||
dt.items.add(file); | ||
} | ||
} | ||
attachment_input.files = dt.files; | ||
}, | ||
|
||
humanSize(bytes) { | ||
if (bytes === 0) return "0 Bytes"; | ||
const sizes = ["Bytes", "KB", "MB", "GB", "TB"]; | ||
const i = Math.floor(Math.log(bytes) / Math.log(1024)); | ||
const size = bytes / Math.pow(1024, i); | ||
return `${size.toFixed(2)} ${sizes[i]}`; | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.