diff --git a/helpdesk_motive/README.rst b/helpdesk_motive/README.rst new file mode 100644 index 0000000000..a2738dea92 --- /dev/null +++ b/helpdesk_motive/README.rst @@ -0,0 +1,121 @@ +=============== +Helpdesk Motive +=============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d39e3a4544fc9651c357088907a9813140eab6c54457d917165081bbbacd7605 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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_motive + :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_motive + :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 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a motive field on the helpdesk ticket. The list is +filtered based on the helpdesk team. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +- Go to Helpdesk > Configuration > Motives +- Create your list of different motives with their name and teams + +Usage +===== + +- Go to Helpdesk +- Create a ticket and set its motive. The list of motives is limited by + the team. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Binhex +* Konos +* Open Source Integrators + +Contributors +------------ + +- `Open Source Integrators `__: + + - Maxime Chambreuil + +- `Konos `__: + + - Nelson Sanchez + +- `Solvos `__: + + - David Alonso + +- \`Binhex \_\`: + + - Adasat Torres + +- \`Camptocamp \_\`: + + - Italo Lopes + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-nelsonramirezs| image:: https://github.com/nelsonramirezs.png?size=40px + :target: https://github.com/nelsonramirezs + :alt: nelsonramirezs +.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 + +Current `maintainers `__: + +|maintainer-nelsonramirezs| |maintainer-max3903| + +This module is part of the `OCA/helpdesk `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/helpdesk_motive/__init__.py b/helpdesk_motive/__init__.py new file mode 100644 index 0000000000..28d65ea3c5 --- /dev/null +++ b/helpdesk_motive/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2019 Open Source Integrators +# Copyright (C) 2019 Konos +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import models diff --git a/helpdesk_motive/__manifest__.py b/helpdesk_motive/__manifest__.py new file mode 100644 index 0000000000..dcb878d90e --- /dev/null +++ b/helpdesk_motive/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright (C) 2019 Open Source Integrators +# Copyright (C) 2019 Konos +# Copyright (C) 2023 Binhex -Adasat Torres +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Helpdesk Motive", + "version": "17.0.1.0.0", + "license": "AGPL-3", + "summary": "Keep the motive ", + "author": "Binhex, Konos, Open Source Integrators, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/helpdesk", + "depends": ["helpdesk_mgmt"], + "data": [ + "security/ir.model.access.csv", + "views/helpdesk_ticket_motive.xml", + "views/helpdesk_ticket_team.xml", + "views/helpdesk_ticket.xml", + ], + "demo": ["demo/helpdesk_motive_demo.xml"], + "application": False, + "development_status": "Beta", + "maintainers": ["nelsonramirezs", "max3903"], +} diff --git a/helpdesk_motive/demo/helpdesk_motive_demo.xml b/helpdesk_motive/demo/helpdesk_motive_demo.xml new file mode 100644 index 0000000000..85f740d9ba --- /dev/null +++ b/helpdesk_motive/demo/helpdesk_motive_demo.xml @@ -0,0 +1,17 @@ + + + + + Client requirement + + + + Update required + + + + + + + + diff --git a/helpdesk_motive/i18n/es.po b/helpdesk_motive/i18n/es.po new file mode 100644 index 0000000000..71726d19bb --- /dev/null +++ b/helpdesk_motive/i18n/es.po @@ -0,0 +1,97 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0+e-20191022\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-12-16 01:41+0000\n" +"PO-Revision-Date: 2024-10-09 14:06+0000\n" +"Last-Translator: FranciscoFactorLibre \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.6.2\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Equipo" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket Helpdesk" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Motivo del Ticket del Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Helpdesk Equipo del Ticket" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "??ltima modificaci??n en" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motivos" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nombre" diff --git a/helpdesk_motive/i18n/es_AR.po b/helpdesk_motive/i18n/es_AR.po new file mode 100644 index 0000000000..98bc834bb9 --- /dev/null +++ b/helpdesk_motive/i18n/es_AR.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-11-30 02:46+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: none\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Motivo de la Mesa de Ayuda" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Equipo de la Mesa de Ayuda" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket de la Mesa de Ayuda" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Motivo del Ticket de la Mesa de Ayuda" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Última Actualización por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Última Actualización el" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motivos" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nombre" diff --git a/helpdesk_motive/i18n/fr.po b/helpdesk_motive/i18n/fr.po new file mode 100644 index 0000000000..db31da67ad --- /dev/null +++ b/helpdesk_motive/i18n/fr.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-05-31 09:39+0000\n" +"Last-Translator: Rémi \n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Nom Affiché" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Raison d'Assistance" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Équipe d'Assistance" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Raison d'Assistance par Équipe" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Raison sur Ticket d'Assistance" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Équipe d'Assistance" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Raison" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Raisons" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nom" diff --git a/helpdesk_motive/i18n/helpdesk_motive.pot b/helpdesk_motive/i18n/helpdesk_motive.pot new file mode 100644 index 0000000000..4810914a65 --- /dev/null +++ b/helpdesk_motive/i18n/helpdesk_motive.pot @@ -0,0 +1,93 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "" diff --git a/helpdesk_motive/i18n/it.po b/helpdesk_motive/i18n/it.po new file mode 100644 index 0000000000..9e27c8f211 --- /dev/null +++ b/helpdesk_motive/i18n/it.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-03-24 19:17+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Motivo Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Team Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket Helpdesk" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Motivo Ticket Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Team Ticket Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motivi" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nome" diff --git a/helpdesk_motive/i18n/pt.po b/helpdesk_motive/i18n/pt.po new file mode 100644 index 0000000000..7095936385 --- /dev/null +++ b/helpdesk_motive/i18n/pt.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-04-29 20:33+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: none\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Criado por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Criado em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Nome" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Motivo de Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Equipa de Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Ticket de Helpdesk" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Motivo do Ticket de Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Equipa de Tickets de Helpdesk" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "Última Modificação em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Última Actualização por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Última Actualização em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motivos" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nome" diff --git a/helpdesk_motive/i18n/pt_BR.po b/helpdesk_motive/i18n/pt_BR.po new file mode 100644 index 0000000000..a39b6c32cd --- /dev/null +++ b/helpdesk_motive/i18n/pt_BR.po @@ -0,0 +1,97 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-05-29 14:34+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: none\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Criado por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Criado em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Nome Exibido" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Motivo da Central de Ajuda" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Time da Central de Ajuda" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Chamado" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Motivo do Chamado da Central de Ajuda" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Equipe do Chamado da Central de Ajuda" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "??ltima Modifica????o em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Atualizado recentemente por" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "??ltima Atualiza????o em" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motivo" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motivos" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Nome" diff --git a/helpdesk_motive/i18n/sv.po b/helpdesk_motive/i18n/sv.po new file mode 100644 index 0000000000..70c9381974 --- /dev/null +++ b/helpdesk_motive/i18n/sv.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * helpdesk_motive +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-09-26 14:06+0000\n" +"Last-Translator: jakobkrabbe \n" +"Language-Team: none\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.6.2\n" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_uid +msgid "Created by" +msgstr "Skapad av" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__create_date +msgid "Created on" +msgstr "Skapad den" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__display_name +msgid "Display Name" +msgstr "Visningsnamn" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_motive +msgid "Helpdesk Motive" +msgstr "Helpdeskmotiv" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__team_id +msgid "Helpdesk Team" +msgstr "Helpdesklag" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket +msgid "Helpdesk Ticket" +msgstr "Helpdeskärende" + +#. module: helpdesk_motive +#: model:ir.actions.act_window,name:helpdesk_motive.action_helpdesk_ticket_motive_tree +msgid "Helpdesk Ticket Motive" +msgstr "Helpdesk ärendemotiv" + +#. module: helpdesk_motive +#: model:ir.model,name:helpdesk_motive.model_helpdesk_ticket_team +msgid "Helpdesk Ticket Team" +msgstr "Helpdesk ärendelag" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__id +msgid "ID" +msgstr "ID" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive____last_update +msgid "Last Modified on" +msgstr "Senast modifierad den" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_uid +msgid "Last Updated by" +msgstr "Senast ändrad av" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__write_date +msgid "Last Updated on" +msgstr "Senast ändrad den" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model:ir.model.fields,help:helpdesk_motive.field_helpdesk_ticket__motive_id +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.helpdesk_ticket_motive_form +msgid "Motive" +msgstr "Motiv" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_team__motive_ids +#: model:ir.ui.menu,name:helpdesk_motive.helpdesk_motive +#: model_terms:ir.ui.view,arch_db:helpdesk_motive.view_helpdesk_team_form +msgid "Motives" +msgstr "Motiv" + +#. module: helpdesk_motive +#: model:ir.model.fields,field_description:helpdesk_motive.field_helpdesk_ticket_motive__name +msgid "Name" +msgstr "Namn" diff --git a/helpdesk_motive/models/__init__.py b/helpdesk_motive/models/__init__.py new file mode 100644 index 0000000000..9dd238d9ef --- /dev/null +++ b/helpdesk_motive/models/__init__.py @@ -0,0 +1,6 @@ +# Copyright (C) 2019 Open Source Integrators +# Copyright (C) 2019 Konos +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from . import helpdesk_ticket +from . import helpdesk_ticket_team +from . import helpdesk_ticket_motive diff --git a/helpdesk_motive/models/helpdesk_ticket.py b/helpdesk_motive/models/helpdesk_ticket.py new file mode 100644 index 0000000000..828e44e7f0 --- /dev/null +++ b/helpdesk_motive/models/helpdesk_ticket.py @@ -0,0 +1,23 @@ +# Copyright (c) 2019 Open Source Integrators +# Copyright (C) 2019 Konos +# Copyright (C) 2023 Binhex -Adasat Torres +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import api, fields, models + + +class HelpdeskTicket(models.Model): + _inherit = "helpdesk.ticket" + + motive_id = fields.Many2one( + "helpdesk.ticket.motive", + string="Motive", + help="Motive", + store=True, + readonly=False, + compute="_compute_team_user_helpdesk_motive", + ) + + @api.depends("team_id", "user_id") + def _compute_team_user_helpdesk_motive(self): + for record in self: + record.motive_id = False diff --git a/helpdesk_motive/models/helpdesk_ticket_motive.py b/helpdesk_motive/models/helpdesk_ticket_motive.py new file mode 100644 index 0000000000..14eab6e4f3 --- /dev/null +++ b/helpdesk_motive/models/helpdesk_ticket_motive.py @@ -0,0 +1,12 @@ +# Copyright (C) 2019 Konos +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +from odoo import fields, models + + +class HelpdeskMotive(models.Model): + _name = "helpdesk.ticket.motive" + _description = "Helpdesk Motive" + _order = "name asc" + + name = fields.Char(required=True) + team_id = fields.Many2one("helpdesk.ticket.team", string="Helpdesk Team") diff --git a/helpdesk_motive/models/helpdesk_ticket_team.py b/helpdesk_motive/models/helpdesk_ticket_team.py new file mode 100644 index 0000000000..24c171e6de --- /dev/null +++ b/helpdesk_motive/models/helpdesk_ticket_team.py @@ -0,0 +1,13 @@ +# © 2021 Solvos Consultoría Informática () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import fields, models + + +class HelpdeskTicketTeam(models.Model): + _inherit = "helpdesk.ticket.team" + + motive_ids = fields.One2many( + comodel_name="helpdesk.ticket.motive", + inverse_name="team_id", + string="Motives", + ) diff --git a/helpdesk_motive/pyproject.toml b/helpdesk_motive/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/helpdesk_motive/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/helpdesk_motive/readme/CONFIGURE.md b/helpdesk_motive/readme/CONFIGURE.md new file mode 100644 index 0000000000..aa68dda150 --- /dev/null +++ b/helpdesk_motive/readme/CONFIGURE.md @@ -0,0 +1,2 @@ +- Go to Helpdesk \> Configuration \> Motives +- Create your list of different motives with their name and teams diff --git a/helpdesk_motive/readme/CONTRIBUTORS.md b/helpdesk_motive/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..a637c95b31 --- /dev/null +++ b/helpdesk_motive/readme/CONTRIBUTORS.md @@ -0,0 +1,10 @@ +- [Open Source Integrators](https://www.opensourceintegrators.com): + - Maxime Chambreuil \<\> +- [Konos](https://www.konos.cl): + - Nelson Sanchez \<\> +- [Solvos](https://www.solvos.es): + - David Alonso \<\> +- \`Binhex \<\>\_\`: + - Adasat Torres \<\> +- \`Camptocamp \<\>\_\`: + - Italo Lopes \<\> diff --git a/helpdesk_motive/readme/DESCRIPTION.md b/helpdesk_motive/readme/DESCRIPTION.md new file mode 100644 index 0000000000..09e14eebf9 --- /dev/null +++ b/helpdesk_motive/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds a motive field on the helpdesk ticket. The list is +filtered based on the helpdesk team. diff --git a/helpdesk_motive/readme/USAGE.md b/helpdesk_motive/readme/USAGE.md new file mode 100644 index 0000000000..604f79be42 --- /dev/null +++ b/helpdesk_motive/readme/USAGE.md @@ -0,0 +1,3 @@ +- Go to Helpdesk +- Create a ticket and set its motive. The list of motives is limited by + the team. diff --git a/helpdesk_motive/security/ir.model.access.csv b/helpdesk_motive/security/ir.model.access.csv new file mode 100644 index 0000000000..c8b2a7b6ed --- /dev/null +++ b/helpdesk_motive/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +ir_model_access_helpdesk_motive_user,helpdesk_motive_group_manager,model_helpdesk_ticket_motive,helpdesk_mgmt.group_helpdesk_user,1,0,0,0 +ir_model_access_helpdesk_motive_manager,helpdesk_motive_group_user,model_helpdesk_ticket_motive,helpdesk_mgmt.group_helpdesk_manager,1,1,1,1 diff --git a/helpdesk_motive/static/description/icon.png b/helpdesk_motive/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/helpdesk_motive/static/description/icon.png differ diff --git a/helpdesk_motive/static/description/index.html b/helpdesk_motive/static/description/index.html new file mode 100644 index 0000000000..d365245311 --- /dev/null +++ b/helpdesk_motive/static/description/index.html @@ -0,0 +1,461 @@ + + + + + +Helpdesk Motive + + + +
+

Helpdesk Motive

+ + +

Beta License: AGPL-3 OCA/helpdesk Translate me on Weblate Try me on Runboat

+

This module adds a motive field on the helpdesk ticket. The list is +filtered based on the helpdesk team.

+

Table of contents

+ +
+

Configuration

+
    +
  • Go to Helpdesk > Configuration > Motives
  • +
  • Create your list of different motives with their name and teams
  • +
+
+
+

Usage

+
    +
  • Go to Helpdesk
  • +
  • Create a ticket and set its motive. The list of motives is limited by +the team.
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Binhex
  • +
  • Konos
  • +
  • Open Source Integrators
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainers:

+

nelsonramirezs max3903

+

This module is part of the OCA/helpdesk project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/helpdesk_motive/tests/__init__.py b/helpdesk_motive/tests/__init__.py new file mode 100644 index 0000000000..e81b1f1e39 --- /dev/null +++ b/helpdesk_motive/tests/__init__.py @@ -0,0 +1 @@ +from . import test_helpdesk_motive diff --git a/helpdesk_motive/tests/test_helpdesk_motive.py b/helpdesk_motive/tests/test_helpdesk_motive.py new file mode 100644 index 0000000000..1c354b3dd5 --- /dev/null +++ b/helpdesk_motive/tests/test_helpdesk_motive.py @@ -0,0 +1,65 @@ +# Copyright (C) 2023 Binhex - Adasat Torres +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo.tests import new_test_user +from odoo.tests.common import TransactionCase + + +class TestHelpdeskMotive(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + # Initialize the class object + helpdesk_ticket_team = cls.env["helpdesk.ticket.team"] + ctx = { + "mail_create_nolog": True, + "mail_create_nosubscribe": True, + "mail_notrack": True, + "no_reset_password": True, + } + cls.user_team = new_test_user( + cls.env, + login="helpdesk_mgmt-user_team", + groups="helpdesk_mgmt.group_helpdesk_user_team", + context=ctx, + ) + cls.user = new_test_user( + cls.env, + login="helpdesk_mgmt-user", + groups="helpdesk_mgmt.group_helpdesk_user", + context=ctx, + ) + cls.team_a = helpdesk_ticket_team.create( + {"name": "Team A", "user_ids": [(6, 0, [cls.user.id])]} + ) + cls.team_b = helpdesk_ticket_team.create( + {"name": "Team B", "user_ids": [(6, 0, [cls.user_team.id])]} + ) + + cls.motive_id = cls.env["helpdesk.ticket.motive"].create( + {"name": "motive_test", "team_id": cls.team_a.id} + ) + + cls.ticket_a_user_team = cls._create_ticket( + cls, cls.team_a, cls.motive_id, cls.user_team + ) + + def _create_ticket(self, team, motive, user=False): + return self.env["helpdesk.ticket"].create( + { + "name": f"Ticket {team.name} {user.login if user else 'unassigned'}", + "description": "Description", + "team_id": team.id, + "user_id": user.id if user else False, + "priority": "1", + "motive_id": motive.id, + } + ) + + def test_compute_team_user_helpdesk_motive(self): + self.assertTrue(self.ticket_a_user_team.motive_id) + self.ticket_a_user_team.write({"team_id": self.team_b.id}) + self.assertFalse(self.ticket_a_user_team.motive_id) + self.ticket_a_user_team.write({"motive_id": self.motive_id.id}) + self.assertTrue(self.ticket_a_user_team.motive_id) + self.ticket_a_user_team.write({"user_id": self.user.id}) + self.assertFalse(self.ticket_a_user_team.motive_id) diff --git a/helpdesk_motive/views/helpdesk_ticket.xml b/helpdesk_motive/views/helpdesk_ticket.xml new file mode 100644 index 0000000000..a047c8438b --- /dev/null +++ b/helpdesk_motive/views/helpdesk_ticket.xml @@ -0,0 +1,18 @@ + + + + Add Motive on Helpdesk Ticket + helpdesk.ticket + + + + + + + + diff --git a/helpdesk_motive/views/helpdesk_ticket_motive.xml b/helpdesk_motive/views/helpdesk_ticket_motive.xml new file mode 100644 index 0000000000..a988e22fa4 --- /dev/null +++ b/helpdesk_motive/views/helpdesk_ticket_motive.xml @@ -0,0 +1,38 @@ + + + + helpdesk.ticket.motive.form + helpdesk.ticket.motive + +
+ + + + +
+
+
+ + helpdesk.ticket.motive.tree + helpdesk.ticket.motive + + + + + + + + + Helpdesk Ticket Motive + helpdesk.ticket.motive + tree,form + + +
diff --git a/helpdesk_motive/views/helpdesk_ticket_team.xml b/helpdesk_motive/views/helpdesk_ticket_team.xml new file mode 100644 index 0000000000..d63d6ce558 --- /dev/null +++ b/helpdesk_motive/views/helpdesk_ticket_team.xml @@ -0,0 +1,21 @@ + + + + + view.helpdesk_team.form (in helpdesk_motive) + helpdesk.ticket.team + + + + + + + + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000000..a4fa049d23 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +odoo-addon-helpdesk_mgmt @ git+https://github.com/OCA/helpdesk.git@refs/pull/638/head#subdirectory=helpdesk_mgmt